mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08: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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user