mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-04 13:30:48 +00:00
Fix gradient tool
This commit is contained in:
parent
6173662a40
commit
9a39c4a0cc
8 changed files with 159 additions and 113 deletions
|
@ -239,6 +239,13 @@ impl NodeInput {
|
|||
NodeInput::Inline(_) => panic!("ty() called on NodeInput::Inline"),
|
||||
}
|
||||
}
|
||||
pub fn as_value(&self) -> Option<&TaggedValue> {
|
||||
if let NodeInput::Value { tagged_value, .. } = self {
|
||||
Some(tagged_value)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Hash, DynAny)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue