Sfoglia il codice sorgente

Merge pull request #89643 from mnemoli/pickone-fix-89641

Fix mouse events when `physics_object_picking_first_only` enabled
Rémi Verschelde 1 anno fa
parent
commit
ca38212604
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  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;
 							}
 						}
 					}