1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

Fix EditorProperty shortcuts being global and unintentionally triggering

This commit is contained in:
Eric M
2025-03-23 00:04:56 +10:00
parent cc7217970d
commit e539b62aa7

View File

@@ -579,6 +579,12 @@ void EditorProperty::_notification(int p_what) {
}
} break;
case NOTIFICATION_ENTER_TREE: {
EditorInspector *inspector = get_parent_inspector();
if (inspector) {
inspector = inspector->get_root_inspector();
}
set_shortcut_context(inspector);
if (has_borders) {
get_parent()->connect(SceneStringName(theme_changed), callable_mp(this, &EditorProperty::_update_property_bg));
_update_property_bg();