mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Core: Fix Object::has_method()
for script static methods
This commit is contained in:
parent
bfd78bb917
commit
ed0b3c08e1
9 changed files with 40 additions and 1 deletions
|
@ -346,6 +346,10 @@ bool GDScript::has_method(const StringName &p_method) const {
|
|||
return member_functions.has(p_method);
|
||||
}
|
||||
|
||||
bool GDScript::has_static_method(const StringName &p_method) const {
|
||||
return member_functions.has(p_method) && member_functions[p_method]->is_static();
|
||||
}
|
||||
|
||||
MethodInfo GDScript::get_method_info(const StringName &p_method) const {
|
||||
HashMap<StringName, GDScriptFunction *>::ConstIterator E = member_functions.find(p_method);
|
||||
if (!E) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue