diff options
author | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2018-01-04 19:04:05 +0100 |
---|---|---|
committer | Emmanuel Leblond <emmanuel.leblond@gmail.com> | 2018-01-04 19:04:05 +0100 |
commit | c1e2ed1d84f6c70ba050669ee1c60263bcf76230 (patch) | |
tree | 26a92b7c9d87ef412f3bd92bcfdcd266c602c686 | |
parent | d78335d87f4441c2bbe7e1c11642fbf19ae95c12 (diff) |
Fix _ClassDB::get_method_list to returns only what's available when introspection is disabled
-rw-r--r-- | core/bind/core_bind.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp index c1e33c1493..2601bd97a1 100644 --- a/core/bind/core_bind.cpp +++ b/core/bind/core_bind.cpp @@ -2459,7 +2459,13 @@ Array _ClassDB::get_method_list(StringName p_class, bool p_no_inheritance) const Array ret; for (List<MethodInfo>::Element *E = methods.front(); E; E = E->next()) { +#ifdef DEBUG_METHODS_ENABLED ret.push_back(E->get().operator Dictionary()); +#else + Dictionary dict; + dict["name"] = E->get().name; + ret.push_back(dict); +#endif } return ret; |