diff options
Diffstat (limited to 'editor/scene_tree_dock.cpp')
-rw-r--r-- | editor/scene_tree_dock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 5b789c9445..d7738e0ba5 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -2660,7 +2660,7 @@ void SceneTreeDock::_create() { } else if (current_option == TOOL_REPLACE) { List<Node *> selection = editor_selection->get_selected_node_list(); - ERR_FAIL_COND(selection.size() <= 0); + ERR_FAIL_COND(selection.is_empty()); EditorUndoRedoManager *ur = EditorUndoRedoManager::get_singleton(); ur->create_action(TTR("Change type of node(s)"), UndoRedo::MERGE_DISABLE, selection.front()->get()); @@ -2679,7 +2679,7 @@ void SceneTreeDock::_create() { ur->commit_action(false); } else if (current_option == TOOL_REPARENT_TO_NEW_NODE) { List<Node *> selection = editor_selection->get_selected_node_list(); - ERR_FAIL_COND(selection.size() <= 0); + ERR_FAIL_COND(selection.is_empty()); // Find top level node in selection bool only_one_top_node = true; |