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