diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-01-31 15:40:51 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-01-31 15:40:51 -0300 |
commit | 817fd1ab7186d00ec0cf113b4431bc6d31eb8272 (patch) | |
tree | f0adfa335dd7c7a0d1cb878bdd42064ed7339445 /modules | |
parent | 53e237dfe4aa550fa52a1187d1b19e7b5ec555eb (diff) |
-Added method flags to global constants for script
-Added a new flag METHOD_FLAG_FROM_SCRIPT to get_method_list() flag property. Closes #3489
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gd_script.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gd_script.cpp b/modules/gdscript/gd_script.cpp index 62c5eb735a..8f48a3d6a7 100644 --- a/modules/gdscript/gd_script.cpp +++ b/modules/gdscript/gd_script.cpp @@ -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); |