Merge pull request #55350 from Ev1lbl0w/fix_default_value_inspector

This commit is contained in:
Rémi Verschelde 2021-11-26 16:01:37 +01:00 committed by GitHub
commit 80e292b3e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -511,7 +511,7 @@ void PlaceHolderScriptInstance::update(const List<PropertyInfo> &p_properties, c
Variant defval;
if (script->get_property_default_value(E->key(), defval)) {
//remove because it's the same as the default value
if (defval == E) {
if (defval == E->get()) {
to_remove.push_back(E->key());
}
}