Merge pull request #15337 from touilleMan/fix-classdb_get_method_list-without-instrospection

Fix _ClassDB::get_method_list when instrospection is disabled
This commit is contained in:
Rémi Verschelde 2018-01-08 15:18:20 +01:00 committed by GitHub
commit 1fea0adc5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2466,7 +2466,13 @@ Array _ClassDB::get_method_list(StringName p_class, bool p_no_inheritance) const
Array ret; Array ret;
for (List<MethodInfo>::Element *E = methods.front(); E; E = E->next()) { for (List<MethodInfo>::Element *E = methods.front(); E; E = E->next()) {
#ifdef DEBUG_METHODS_ENABLED
ret.push_back(E->get().operator Dictionary()); ret.push_back(E->get().operator Dictionary());
#else
Dictionary dict;
dict["name"] = E->get().name;
ret.push_back(dict);
#endif
} }
return ret; return ret;