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