Fix T52490: NDOF orbit doesn't lock in ortho view
Regression in af3f7db
caused by own fix for T51324
This commit is contained in:
parent
76e8dcafa3
commit
0ed5605bd5
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue