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 /editor/doc_tools.cpp | |
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 'editor/doc_tools.cpp')
-rw-r--r-- | editor/doc_tools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/doc_tools.cpp b/editor/doc_tools.cpp index 6e6416e3ca..14a2640e63 100644 --- a/editor/doc_tools.cpp +++ b/editor/doc_tools.cpp @@ -335,7 +335,7 @@ static Variant get_documentation_default_value(const StringName &p_class_name, c Variant default_value = Variant(); r_default_value_valid = false; - if (ClassDB::can_instantiate(p_class_name)) { // Keep this condition in sync with ClassDB::class_get_default_property_value. + if (ClassDB::can_instantiate(p_class_name) && !ClassDB::is_virtual(p_class_name)) { // Keep this condition in sync with ClassDB::class_get_default_property_value. default_value = ClassDB::class_get_default_property_value(p_class_name, p_property_name, &r_default_value_valid); } else { // Cannot get default value of classes that can't be instantiated |