Merge pull request #6269 from neikeq/pr-doc-null
DocData: Fix null reference not detected correctly
This commit is contained in:
commit
4590293186
1 changed files with 4 additions and 0 deletions
|
@ -296,6 +296,10 @@ void DocData::generate(bool p_basic_types) {
|
|||
default_arg_text=Variant::get_type_name(default_arg.get_type())+default_arg_text;
|
||||
break;
|
||||
case Variant::OBJECT:
|
||||
if (default_arg.is_zero()) {
|
||||
default_arg_text="NULL";
|
||||
break;
|
||||
}
|
||||
case Variant::INPUT_EVENT:
|
||||
case Variant::DICTIONARY: // 20
|
||||
case Variant::ARRAY:
|
||||
|
|
Loading…
Reference in a new issue