summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2022-11-06 13:27:24 -0600
committerAaron Franke <arnfranke@yahoo.com>2022-11-06 15:05:36 -0600
commit3dc947435504096f09a9520d1360ad97ac2c0d14 (patch)
tree26b33bce58ae5bf4d8ea1539813770aa5f5beb5c /core
parentf814e15c7f60a685e8b3623fc93231c18ccd3627 (diff)
Fix default values not showing up on virtual classes
Diffstat (limited to 'core')
-rw-r--r--core/object/class_db.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/object/class_db.cpp b/core/object/class_db.cpp
index 0863dea053..afde6863a3 100644
--- a/core/object/class_db.cpp
+++ b/core/object/class_db.cpp
@@ -1460,7 +1460,7 @@ Variant ClassDB::class_get_default_property_value(const StringName &p_class, con
if (Engine::get_singleton()->has_singleton(p_class)) {
c = Engine::get_singleton()->get_singleton_object(p_class);
cleanup_c = false;
- } else if (ClassDB::can_instantiate(p_class) && !ClassDB::is_virtual(p_class)) {
+ } else if (ClassDB::can_instantiate(p_class)) { // Keep this condition in sync with doc_tools.cpp get_documentation_default_value.
c = ClassDB::instantiate(p_class);
cleanup_c = true;
}