Skip to content

Commit d96db73

Browse files
committed
Fix hidden layers
1 parent 76ec270 commit d96db73

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

node-graph/graph-craft/src/document.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -959,12 +959,8 @@ impl NodeNetwork {
959959
if !node.visible && node.implementation != identity_node {
960960
node.implementation = identity_node;
961961

962-
if node.is_layer {
963-
// Connect layer node to the graphic group below
964-
node.inputs.drain(..1);
965-
} else {
966-
node.inputs.drain(1..);
967-
}
962+
// Connect layer node to the graphic group below
963+
node.inputs.drain(1..);
968964
self.nodes.insert(id, node);
969965

970966
return;

0 commit comments

Comments
 (0)