mirror of
https://github.com/godotengine/godot.git
synced 2025-04-07 00:44:24 +08:00
Fix wrong comparison with default values
This commit is contained in:
parent
8f0c6ce726
commit
93396b3e51
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user