Skip to content

Commit

Permalink
Merge pull request #55350 from Ev1lbl0w/fix_default_value_inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga authored Nov 26, 2021
2 parents 8f0c6ce + 93396b3 commit 80e292b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/object/script_language.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down

0 comments on commit 80e292b

Please sign in to comment.