From 51330b29ae3a6e199bb64d92bc84da086c326671 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sat, 11 Jun 2016 17:44:52 -0300 Subject: [PATCH] do not allow picking in captured mode, closes #5134 (cherry picked from commit b75fb6674b844d177d6d07526dd4d05de74294f5) --- scene/main/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index dec0910fb54..62cdad22b38 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -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); CollisionObject *last_object;