Core: Fix Object::has_method() for script static methods

This commit is contained in:
Danil Alexeev
2023-10-04 07:54:03 +03:00
parent bfd78bb917
commit ed0b3c08e1
9 changed files with 40 additions and 1 deletions

View File

@ -145,7 +145,10 @@ public:
virtual PropertyInfo get_class_category() const;
#endif // TOOLS_ENABLED
// TODO: In the next compat breakage rename to `*_script_*` to disambiguate from `Object::has_method()`.
virtual bool has_method(const StringName &p_method) const = 0;
virtual bool has_static_method(const StringName &p_method) const { return false; }
virtual MethodInfo get_method_info(const StringName &p_method) const = 0;
virtual bool is_tool() const = 0;