diff options
| author | Rémi Verschelde | 2018-01-08 15:18:20 +0100 |
|---|---|---|
| committer | GitHub | 2018-01-08 15:18:20 +0100 |
| commit | 1fea0adc5c3f250b585c89f56e6fd0e07ba61f83 (patch) | |
| tree | 2b294580cdcb470b1ac5a84aa5894afb539ed825 | |
| parent | 51709cd8c8791142b5a1e957902a5e9aed8cc7bb (diff) | |
| parent | c1e2ed1d84f6c70ba050669ee1c60263bcf76230 (diff) | |
| download | godot-1fea0adc5c3f250b585c89f56e6fd0e07ba61f83.tar.gz godot-1fea0adc5c3f250b585c89f56e6fd0e07ba61f83.tar.zst godot-1fea0adc5c3f250b585c89f56e6fd0e07ba61f83.zip | |
| -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 2921626f3..c7b08b824 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; |
