You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
-Added method flags to global constants for script
-Added a new flag METHOD_FLAG_FROM_SCRIPT to get_method_list() flag property. Closes #3489
This commit is contained in:
@@ -2456,6 +2456,7 @@ void GDInstance::get_method_list(List<MethodInfo> *p_list) const {
|
||||
|
||||
MethodInfo mi;
|
||||
mi.name=E->key();
|
||||
mi.flags|=METHOD_FLAG_FROM_SCRIPT;
|
||||
for(int i=0;i<E->get().get_argument_count();i++)
|
||||
mi.arguments.push_back(PropertyInfo(Variant::NIL,"arg"+itos(i)));
|
||||
p_list->push_back(mi);
|
||||
|
||||
Reference in New Issue
Block a user