summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-03-16 19:55:07 +0100
committerGitHub <noreply@github.com>2020-03-16 19:55:07 +0100
commit56175bb6fad3bc9b494fbac89f5874fc1fb70652 (patch)
treef611b2c4a4938f843567d97e1a08046e02f8bdea
parent77c88a634ca5879d0bb171b0cea4d37ccd4f796b (diff)
parent64cd5d197d8cf67d1008414f7d85c9aced60f2a0 (diff)
Merge pull request #36896 from kuruk-mm/doc_return_variant_2
Doctool and core: Fix return type in docs for some Variant methods...
-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 f00aad33fc..db7244a221 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