Prevent to make UndoRedo for duplicate if no selected node
(cherry picked from commit d82928eb49
)
This commit is contained in:
parent
c282ac8ec7
commit
64f38490df
1 changed files with 2 additions and 0 deletions
|
@ -460,6 +460,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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue