Skip to content

Commit

Permalink
Merge pull request #85486 from paulloz/fix/property-groups-shadowing
Browse files Browse the repository at this point in the history
Fix property groups overriding real properties
  • Loading branch information
akien-mga committed Dec 5, 2023
2 parents 36e033b + decf3b2 commit 75d7aab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/object/script_language.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,10 @@ bool PlaceHolderScriptInstance::has_method(const StringName &p_method) const {
void PlaceHolderScriptInstance::update(const List<PropertyInfo> &p_properties, const HashMap<StringName, Variant> &p_values) {
HashSet<StringName> 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);

Expand Down

0 comments on commit 75d7aab

Please sign in to comment.