Collapse unremovable nodes on remove attempt

This commit is contained in:
luboslenco
2025-11-17 13:24:00 +01:00
parent 12cb662312
commit 8b5b2168b2
+1
View File
@@ -1353,6 +1353,7 @@ void ui_node_canvas(ui_nodes_t *nodes, ui_node_canvas_t *canvas) {
int nid = current_nodes->nodes_selected_id->buffer[i--];
ui_node_t *n = ui_get_node(canvas->nodes, nid);
if (ui_is_node_type_excluded(n->type)) {
n->flags ^= NODE_FLAG_COLLAPSED;
continue;
}
ui_remove_node(n, canvas);