Doctool and core: Fix return type in docs for some Variant methods assigning PROPERTY_USAGE_NIL_IS_VARIANT to MethodInfo usage when we have something to return
This commit is contained in:
parent
65e0a2fb52
commit
64cd5d197d
1 changed files with 4 additions and 1 deletions
|
@ -1526,8 +1526,11 @@ void Variant::get_method_list(List<MethodInfo> *p_list) const {
|
|||
PropertyInfo ret;
|
||||
#ifdef DEBUG_ENABLED
|
||||
ret.type = fd.return_type;
|
||||
if (fd.returns)
|
||||
if (fd.returns) {
|
||||
ret.name = "ret";
|
||||
if (fd.return_type == Variant::NIL)
|
||||
ret.usage = PROPERTY_USAGE_NIL_IS_VARIANT;
|
||||
}
|
||||
mi.return_val = ret;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue