Skip to content

Commit

Permalink
Don't process input in hidden EditorProperty.
Browse files Browse the repository at this point in the history
This causes EditorProperty nodes to intercept input events even when the
Editor Properties dialog is not visible. This means that after closing
the dialog, ctrl+shift+c will still copy the last selected property
path.

Fixes godotengine#62866.
  • Loading branch information
rcorre committed Jul 19, 2022
1 parent 83d0e97 commit 26223fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/editor_inspector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ void EditorProperty::_gui_input(const Ref<InputEvent> &p_event) {
}

void EditorProperty::_unhandled_key_input(const Ref<InputEvent> &p_event) {
if (!selected) {
if (!selected || !is_visible_in_tree()) {
return;
}

Expand Down

0 comments on commit 26223fe

Please sign in to comment.