summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateo Miccino <mateomiccino@gmail.com>2020-03-07 23:39:39 -0300
committerMateo Miccino <mateomiccino@gmail.com>2020-03-09 13:36:03 -0300
commit64cd5d197d8cf67d1008414f7d85c9aced60f2a0 (patch)
tree515a35d1fd89c0e24839856d91cfe620c621d02e
parent65e0a2fb529b6ca83bfd64bec3848a16d4692659 (diff)
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
-rw-r--r--core/variant_call.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp
index 99cfc7ed3c..95c11be5cf 100644
--- a/core/variant_call.cpp
+++ b/core/variant_call.cpp
@@ -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