Skip to content

Commit

Permalink
Fix wrong comparison with default values
Browse files Browse the repository at this point in the history
  • Loading branch information
rsubtil committed Nov 26, 2021
1 parent 8f0c6ce commit 93396b3
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 93396b3

Please sign in to comment.