diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-03-16 19:55:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-16 19:55:07 +0100 |
commit | 56175bb6fad3bc9b494fbac89f5874fc1fb70652 (patch) | |
tree | f611b2c4a4938f843567d97e1a08046e02f8bdea | |
parent | 77c88a634ca5879d0bb171b0cea4d37ccd4f796b (diff) | |
parent | 64cd5d197d8cf67d1008414f7d85c9aced60f2a0 (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.cpp | 5 |
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 |