Skip to content

Commit 8dd6ad3

Browse files
committed
Merge pull request #108017 from KoBeWi/🙈
Don't rename nodes when tree is invisible
2 parents cef8eb1 + 4fd9b45 commit 8dd6ad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎editor/scene_tree_dock.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ void SceneTreeDock::shortcut_input(const Ref<InputEvent> &p_event) {
184184
if (focus_owner && (Object::cast_to<BaseButton>(focus_owner) || Object::cast_to<Range>(focus_owner))) {
185185
return;
186186
}
187-
if (edit_remote->is_pressed()) {
187+
if (!scene_tree->is_visible_in_tree()) {
188188
return;
189189
}
190190
_tool_selected(TOOL_RENAME);

0 commit comments

Comments
 (0)