diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-11-09 10:51:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-09 10:51:32 +0100 |
commit | e25d9281d4f6f0b5b4d972b25cddaa1009ad1d26 (patch) | |
tree | b809e26b2dd47ff9df7ac483a6464b17e0c645f7 /core | |
parent | 29de658c2908b6b50b218225539f9779292eb870 (diff) | |
parent | a3e52925bf6238ab245e30190d9f30b87119294b (diff) |
Merge pull request #68442 from aaronfranke/virtually-kinda-documented
Fixes https://github.com/godotengine/godot/issues/68437
Diffstat (limited to 'core')
-rw-r--r-- | core/object/class_db.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/object/class_db.cpp b/core/object/class_db.cpp index afde6863a3..ac6ad0fdd2 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)) { // Keep this condition in sync with doc_tools.cpp get_documentation_default_value. + } else if (ClassDB::can_instantiate(p_class) && !ClassDB::is_virtual(p_class)) { // Keep this condition in sync with doc_tools.cpp get_documentation_default_value. c = ClassDB::instantiate(p_class); cleanup_c = true; } |