소스 검색

Fix mouse_enter/mouse_exit events when physics_object_picking_first_only is on

mnemoli 1 년 전
부모
커밋
ca23775374
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      scene/main/viewport.cpp

+ 4 - 3
scene/main/viewport.cpp

@@ -856,9 +856,10 @@ void Viewport::_process_picking() {
 
 							if (send_event) {
 								co->_input_event_call(this, ev, res[i].shape);
-								if (physics_object_picking_first_only) {
-									break;
-								}
+							}
+
+							if (physics_object_picking_first_only) {
+								break;
 							}
 						}
 					}