1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Don't rename nodes when tree is invisible

This commit is contained in:
kobewi
2025-06-26 19:06:44 +02:00
parent 9a3976097f
commit 4fd9b45189

View File

@@ -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);