From b959ab98486ce9d6f8b7bd02895058f9e6a172a7 Mon Sep 17 00:00:00 2001 From: Paul Joannon Date: Tue, 28 Nov 2023 20:50:10 +0100 Subject: [PATCH] Fix property groups overriding real properties (cherry picked from commit decf3b21ae03af2c5c5e6a6629d8c45c4b50eb93) --- core/object/script_language.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/object/script_language.cpp b/core/object/script_language.cpp index 086f8a666ef..3b274ecc2f2 100644 --- a/core/object/script_language.cpp +++ b/core/object/script_language.cpp @@ -631,6 +631,10 @@ bool PlaceHolderScriptInstance::has_method(const StringName &p_method) const { void PlaceHolderScriptInstance::update(const List &p_properties, const HashMap &p_values) { HashSet new_values; for (const PropertyInfo &E : p_properties) { + if (E.usage & (PROPERTY_USAGE_GROUP | PROPERTY_USAGE_SUBGROUP | PROPERTY_USAGE_CATEGORY)) { + continue; + } + StringName n = E.name; new_values.insert(n);