You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Prevent to make UndoRedo for duplicate if no selected node
This commit is contained in:
@@ -517,6 +517,8 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
List<Node*> selection = editor_selection->get_selected_node_list();
|
List<Node*> selection = editor_selection->get_selected_node_list();
|
||||||
|
if (selection.size()==0)
|
||||||
|
break;
|
||||||
|
|
||||||
List<Node*> reselect;
|
List<Node*> reselect;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user