do not allow picking in captured mode, closes #5134
(cherry picked from commit b75fb6674b
)
This commit is contained in:
parent
8289760227
commit
51330b29ae
|
@ -486,7 +486,7 @@ void Viewport::_notification(int p_what) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (physics_object_picking) {
|
if (physics_object_picking && (render_target || Input::get_singleton()->get_mouse_mode()!=Input::MOUSE_MODE_CAPTURED)) {
|
||||||
|
|
||||||
Vector2 last_pos(1e20,1e20);
|
Vector2 last_pos(1e20,1e20);
|
||||||
CollisionObject *last_object;
|
CollisionObject *last_object;
|
||||||
|
|
Loading…
Reference in New Issue