mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-07-16 04:05:00 +00:00
Add support for exposing node parameter inputs (#866)
* Add exposing inputs to graph * Use uuids and better node positioning * Fix accidentally refering to the wrong grid spacing * Secondary input without primary input * Cleanup document node types * Rename to input and addend
This commit is contained in:
parent
0a78ebda25
commit
3dd9e88655
8 changed files with 174 additions and 109 deletions
|
@ -108,10 +108,10 @@ impl NodeInput {
|
|||
}
|
||||
}
|
||||
pub fn is_exposed(&self) -> bool {
|
||||
if let NodeInput::Value { exposed, .. } = self {
|
||||
*exposed
|
||||
} else {
|
||||
true
|
||||
match self {
|
||||
NodeInput::Node(_) => true,
|
||||
NodeInput::Value { exposed, .. } => *exposed,
|
||||
NodeInput::Network => false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue