diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-04-20 11:53:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-20 11:53:24 +0200 |
commit | 725e8b771bba93d3f82bd8b9e596d61b1daf14f6 (patch) | |
tree | 8420f2916a4ba341a7d65f295b3674e82999ff3b | |
parent | b3d2584960dd7ede84591996ac1f880dd87106fe (diff) | |
parent | f25b0578462e94d6b0bacb160ff886d4e3320d85 (diff) |
Merge pull request #28229 from akien-mga/disable_3d-build-fix
Fix disable_3d=yes -Wunused-variable errors
-rw-r--r-- | scene/main/viewport.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 05c183275a..52f63ddc1d 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -391,9 +391,11 @@ void Viewport::_notification(int p_what) { if (physics_object_picking && (to_screen_rect == Rect2() || Input::get_singleton()->get_mouse_mode() != Input::MOUSE_MODE_CAPTURED)) { +#ifndef _3D_DISABLED Vector2 last_pos(1e20, 1e20); CollisionObject *last_object = NULL; ObjectID last_id = 0; +#endif PhysicsDirectSpaceState::RayResult result; Physics2DDirectSpaceState *ss2d = Physics2DServer::get_singleton()->space_get_direct_state(find_world_2d()->get_space()); |