Sfoglia il codice sorgente

Don't rename nodes when tree is invisible

kobewi 2 mesi fa
parent
commit
4fd9b45189
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      editor/scene_tree_dock.cpp

+ 1 - 1
editor/scene_tree_dock.cpp

@@ -184,7 +184,7 @@ void SceneTreeDock::shortcut_input(const Ref<InputEvent> &p_event) {
 		if (focus_owner && (Object::cast_to<BaseButton>(focus_owner) || Object::cast_to<Range>(focus_owner))) {
 			return;
 		}
-		if (edit_remote->is_pressed()) {
+		if (!scene_tree->is_visible_in_tree()) {
 			return;
 		}
 		_tool_selected(TOOL_RENAME);