mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Allow coexistance of GDScript and GDExtension virtual methods in the same object
Resolves https://github.com/godotengine/godot-cpp/issues/1224
This commit is contained in:
parent
7f884b4e00
commit
4c33c60500
@ -47,8 +47,8 @@ _FORCE_INLINE_ bool _gdvirtual_##m_name##_call($CALLARGS) $CONST { \\
|
||||
}\\
|
||||
_FORCE_INLINE_ bool _gdvirtual_##m_name##_overridden() const { \\
|
||||
ScriptInstance *_script_instance = ((Object*)(this))->get_script_instance();\\
|
||||
if (_script_instance) {\\
|
||||
return _script_instance->has_method(_gdvirtual_##m_name##_sn);\\
|
||||
if (_script_instance && _script_instance->has_method(_gdvirtual_##m_name##_sn)) {\\
|
||||
return true;\\
|
||||
}\\
|
||||
if (unlikely(_get_extension() && !_gdvirtual_##m_name##_initialized)) {\\
|
||||
_gdvirtual_##m_name = nullptr;\\
|
||||
|
Loading…
Reference in New Issue
Block a user