New nodes: 'Point Inside Shape' and 'Close Path' (#2673)

* add point inside shape,close path,and disabled node to layer conversion

* removed the usage one_instance

* code review
This commit is contained in:
0SlowPoke0
2025-05-26 14:45:31 +05:30
committed by GitHub
parent 3496e22f55
commit f6e592da5b
3 changed files with 64 additions and 6 deletions

View File

@@ -1214,11 +1214,6 @@ impl<'a> MessageHandler<NodeGraphMessage, NodeGraphHandlerData<'a>> for NodeGrap
if is_stack_wire(&wire) { stack_wires.push(wire) } else { node_wires.push(wire) }
}
// Auto convert node to layer when inserting on a single stack wire
if stack_wires.len() == 1 && node_wires.is_empty() {
network_interface.set_to_node_or_layer(&selected_node_id, selection_network_path, true)
}
let overlapping_wire = if network_interface.is_layer(&selected_node_id, selection_network_path) {
if stack_wires.len() == 1 {
stack_wires.first()