summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdi Cikovic <edi.cikovic@gmail.com>2019-11-01 13:03:57 +0100
committerEdi Cikovic <edi.cikovic@gmail.com>2019-11-01 13:03:57 +0100
commitd14d57120db97aa1b3a758be822be9430bbec7ed (patch)
treec3cfecd3b04631cdf74420f3dedd8144e3dd146e
parentb8daad97790a2bb855336b94525d74153c966e0b (diff)
Fix Batch Rename not opening
-rw-r--r--editor/scene_tree_dock.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp
index 0884620e5d..beead9e7f1 100644
--- a/editor/scene_tree_dock.cpp
+++ b/editor/scene_tree_dock.cpp
@@ -340,8 +340,7 @@ void SceneTreeDock::_tool_selected(int p_tool, bool p_confirm_override) {
if (!profile_allow_editing) {
break;
}
- Tree *tree = scene_tree->get_scene_tree();
- if (tree->is_anything_selected()) {
+ if (editor_selection->get_selected_node_list().size() > 1) {
rename_dialog->popup_centered();
}
} break;