We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d8ed5d0 + f53a220 commit 84bf708Copy full SHA for 84bf708
scene/main/viewport.cpp
@@ -682,8 +682,9 @@ void Viewport::_process_picking() {
682
if (Object::cast_to<Window>(this) && Input::get_singleton()->get_mouse_mode() == Input::MOUSE_MODE_CAPTURED) {
683
return;
684
}
685
- if (!gui.mouse_in_viewport) {
686
- // Clear picking events if mouse has left viewport.
+ if (!gui.mouse_in_viewport || gui.subwindow_over) {
+ // Clear picking events if the mouse has left the viewport or is over an embedded window.
687
+ // These are locations, that are expected to not trigger physics picking.
688
physics_picking_events.clear();
689
690
0 commit comments