diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-01-08 15:18:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-08 15:18:20 +0100 |
commit | 1fea0adc5c3f250b585c89f56e6fd0e07ba61f83 (patch) | |
tree | 2b294580cdcb470b1ac5a84aa5894afb539ed825 /core/bind/core_bind.cpp | |
parent | 51709cd8c8791142b5a1e957902a5e9aed8cc7bb (diff) | |
parent | c1e2ed1d84f6c70ba050669ee1c60263bcf76230 (diff) |
Merge pull request #15337 from touilleMan/fix-classdb_get_method_list-without-instrospection
Fix _ClassDB::get_method_list when instrospection is disabled
Diffstat (limited to 'core/bind/core_bind.cpp')
-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 2921626f3a..c7b08b8242 100644 --- a/core/bind/core_bind.cpp +++ b/core/bind/core_bind.cpp @@ -2466,7 +2466,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; |