Browse Source

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

Fix _ClassDB::get_method_list when instrospection is disabled
Rémi Verschelde 7 years ago
parent
commit
1fea0adc5c
1 changed files with 6 additions and 0 deletions
  1. 6 0
      core/bind/core_bind.cpp

+ 6 - 0
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;