diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-11-07 08:49:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-07 08:49:03 +0100 |
commit | bb5b45e95035e1e7ab9d7892553339dff260ff95 (patch) | |
tree | 2d7835b03b1d133e962a4828108cbf01aad6b938 /editor | |
parent | 7d4e3a0ea265e9b2f3060a2198c59e20288fb346 (diff) | |
parent | 3dc947435504096f09a9520d1360ad97ac2c0d14 (diff) |
Merge pull request #68344 from aaronfranke/virtually-documented
Fix default values not showing up on virtual classes
Diffstat (limited to 'editor')
-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 7d6eb186dc..6e6416e3ca 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)) { + if (ClassDB::can_instantiate(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 |