mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-12 01:08:01 +00:00
Fix hiding and collapsing layers (#1481)
* Hide and collapse layers * Reorder imports * Fix Ctrl+H shortcut advertized action and hotkey tooltip; improve graph top right of options bar --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
parent
6d9dd5fc27
commit
5ee79031ab
22 changed files with 164 additions and 123 deletions
|
@ -809,9 +809,14 @@ impl NodeNetwork {
|
|||
return;
|
||||
};
|
||||
|
||||
if self.disabled.contains(&id) {
|
||||
if node.implementation != DocumentNodeImplementation::Unresolved("graphene_core::ops::IdNode".into()) && self.disabled.contains(&id) {
|
||||
node.implementation = DocumentNodeImplementation::Unresolved("graphene_core::ops::IdNode".into());
|
||||
node.inputs.drain(1..);
|
||||
if node.name == "Layer" {
|
||||
// Connect layer node to the graphic group below
|
||||
node.inputs.drain(..7);
|
||||
} else {
|
||||
node.inputs.drain(1..);
|
||||
}
|
||||
self.nodes.insert(id, node);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue