diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-11-26 16:01:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-26 16:01:37 +0100 |
commit | 80e292b3e019d4084b09431572bba12f87e81023 (patch) | |
tree | 603488b3aa779c58988e1ae4e02cef962a5fa1b2 | |
parent | 8f0c6ce72697bc3a09e2f5c578837d3bbf71a95a (diff) | |
parent | 93396b3e51742606896c83e2b9dc88c20753805d (diff) |
Merge pull request #55350 from Ev1lbl0w/fix_default_value_inspector
-rw-r--r-- | core/object/script_language.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/object/script_language.cpp b/core/object/script_language.cpp index c2449e3ddc..8ec1a973e7 100644 --- a/core/object/script_language.cpp +++ b/core/object/script_language.cpp @@ -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()); } } |