Prevent to make UndoRedo for duplicate if no selected node

(cherry picked from commit d82928eb49)
This commit is contained in:
volzhs 2016-11-05 00:52:53 +09:00 committed by Rémi Verschelde
parent c282ac8ec7
commit 64f38490df

View file

@ -460,6 +460,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;