Merge pull request #7035 from volzhs/undo-redo-duplicate
Prevent to make UndoRedo for duplicate if no selected node
This commit is contained in:
commit
a4570cb461
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue