Merge pull request #85870 from dsnopek/collision-object-3d-gdextension-virtuals
Fix overriding `CollisionObject3D::_mouse_enter()` and `_mouse_exit()` from GDExtension
This commit is contained in:
commit
26ae551108
1 changed files with 2 additions and 6 deletions
|
@ -295,16 +295,12 @@ void CollisionObject3D::_input_event_call(Camera3D *p_camera, const Ref<InputEve
|
|||
}
|
||||
|
||||
void CollisionObject3D::_mouse_enter() {
|
||||
if (get_script_instance()) {
|
||||
get_script_instance()->call(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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue