Fix T52490: NDOF orbit doesn't lock in ortho view

Regression in af3f7db caused by own fix for T51324
This commit is contained in:
Campbell Barton 2017-08-24 00:47:47 +10:00
parent 520ea73ad0
commit 76d695f761
Notes: blender-bot 2023-06-26 11:58:59 +02:00
Referenced by issue #52490, NDOF device does not lock into orthogonal view (top, front, right, etc) in 2.79RC2 as in prev versions
1 changed files with 2 additions and 1 deletions

View File

@ -750,7 +750,8 @@ static void viewops_data_create_ex(
vod->use_dyn_ofs = false;
}
if (switch_from_camera) {
/* Check we're in the camera view, otherwise we may switch out of axis views, see: T52490 */
if (switch_from_camera && (rv3d->persp == RV3D_CAMOB)) {
/* switch from camera view when: */
if (view3d_ensure_persp(vod->v3d, vod->ar)) {
/* If we're switching from camera view to the perspective one,