do not allow picking in captured mode, closes #5134

(cherry picked from commit b75fb6674b)
This commit is contained in:
Juan Linietsky 2016-06-11 17:44:52 -03:00 committed by Rémi Verschelde
parent 8289760227
commit 51330b29ae
1 changed files with 1 additions and 1 deletions

View File

@ -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;