Sfoglia il codice sorgente

Fix node removal undo

luboslenco 1 settimana fa
parent
commit
753de3ffd5
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      paint/sources/history.ts

+ 3 - 0
paint/sources/history.ts

@@ -721,6 +721,9 @@ function history_swap_canvas(step: step_t) {
 		context_raw.brush = project_brushes[step.brush];
 	}
 
+	let nodes: ui_nodes_t = ui_nodes_get_nodes();
+	nodes.nodes_selected_id.length = 0;
+
 	ui_nodes_canvas_changed();
 	ui_nodes_hwnd.redraws = 2;
 }