Skip to content

Commit ca23775

Browse files
committed
Fix mouse_enter/mouse_exit events when physics_object_picking_first_only is on
1 parent fe01776 commit ca23775

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scene/main/viewport.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -856,9 +856,10 @@ void Viewport::_process_picking() {
856856

857857
if (send_event) {
858858
co->_input_event_call(this, ev, res[i].shape);
859-
if (physics_object_picking_first_only) {
860-
break;
861-
}
859+
}
860+
861+
if (physics_object_picking_first_only) {
862+
break;
862863
}
863864
}
864865
}

0 commit comments

Comments
 (0)