Fix overriding `CollisionObject3D::_mouse_enter()` and `_mouse_exit()` from GDExtension
(cherry picked from commit bfdcd8559b
)
This commit is contained in:
parent
02e6c0ab95
commit
17b1fd94af
|
@ -291,16 +291,12 @@ void CollisionObject3D::_input_event_call(Camera3D *p_camera, const Ref<InputEve
|
||||||
}
|
}
|
||||||
|
|
||||||
void CollisionObject3D::_mouse_enter() {
|
void CollisionObject3D::_mouse_enter() {
|
||||||
if (get_script_instance()) {
|
GDVIRTUAL_CALL(_mouse_enter);
|
||||||
get_script_instance()->call(SceneStringNames::get_singleton()->_mouse_enter);
|
|
||||||
}
|
|
||||||
emit_signal(SceneStringNames::get_singleton()->mouse_entered);
|
emit_signal(SceneStringNames::get_singleton()->mouse_entered);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CollisionObject3D::_mouse_exit() {
|
void CollisionObject3D::_mouse_exit() {
|
||||||
if (get_script_instance()) {
|
GDVIRTUAL_CALL(_mouse_exit);
|
||||||
get_script_instance()->call(SceneStringNames::get_singleton()->_mouse_exit);
|
|
||||||
}
|
|
||||||
emit_signal(SceneStringNames::get_singleton()->mouse_exited);
|
emit_signal(SceneStringNames::get_singleton()->mouse_exited);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue