From bfdcd8559b3010e24e56e5da72a7684116d8d2d5 Mon Sep 17 00:00:00 2001 From: David Snopek Date: Wed, 6 Dec 2023 16:39:43 -0600 Subject: [PATCH] Fix overriding `CollisionObject3D::_mouse_enter()` and `_mouse_exit()` from GDExtension --- scene/3d/collision_object_3d.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scene/3d/collision_object_3d.cpp b/scene/3d/collision_object_3d.cpp index bfe594adc23..b4d62dc1c8d 100644 --- a/scene/3d/collision_object_3d.cpp +++ b/scene/3d/collision_object_3d.cpp @@ -291,16 +291,12 @@ void CollisionObject3D::_input_event_call(Camera3D *p_camera, const Refcall(SceneStringNames::get_singleton()->_mouse_enter); - } + GDVIRTUAL_CALL(_mouse_enter); emit_signal(SceneStringNames::get_singleton()->mouse_entered); } void CollisionObject3D::_mouse_exit() { - if (get_script_instance()) { - get_script_instance()->call(SceneStringNames::get_singleton()->_mouse_exit); - } + GDVIRTUAL_CALL(_mouse_exit); emit_signal(SceneStringNames::get_singleton()->mouse_exited); }