Fix various crashes and bugs (#2075)

* Fix offset brush tool

* Fixes
This commit is contained in:
adamgerhant 2024-10-25 16:54:37 -07:00 committed by GitHub
parent 3e0178a032
commit fd20d51e85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 49 additions and 45 deletions

View file

@ -1025,7 +1025,6 @@ impl NodeNetwork {
warn!("The node which was supposed to be flattened does not exist in the network, id {node_id} network {self:#?}");
return;
};
// If the node is hidden, replace it with an identity node
let identity_node = DocumentNodeImplementation::ProtoNode("graphene_core::ops::IdentityNode".into());
if !node.visible && node.implementation != identity_node {
@ -1033,8 +1032,8 @@ impl NodeNetwork {
// Connect layer node to the graphic group below
node.inputs.drain(1..);
node.manual_composition = None;
self.nodes.insert(id, node);
return;
}