replace checks with rv3d->persp with rv3d->is_persp since in these cases it only...
[blender.git] / source / blender / editors / space_view3d / view3d_view.c
index 8a17d0ca1714fb77cf291b566c7c4dfb84845fb3..a73985f17576e42d23f2d4ed1efbcbacdd7085e0 100644 (file)
@@ -548,8 +548,7 @@ void viewray(ARegion *ar, View3D *v3d, const float mval[2], float ray_start[3],
 
 void viewvector(RegionView3D *rv3d, const float coord[3], float vec[3])
 {
-       if (rv3d->persp != RV3D_ORTHO)
-       {
+       if (rv3d->is_persp) {
                float p1[4], p2[4];
 
                copy_v3_v3(p1, coord);