Fix default values not showing up on virtual classes
This commit is contained in:
parent
f814e15c7f
commit
3dc9474355
20 changed files with 84 additions and 70 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue