replace checks with rv3d->persp with rv3d->is_persp since in these cases it only...
authorCampbell Barton <ideasman42@gmail.com>
Fri, 20 May 2011 11:15:44 +0000 (11:15 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 20 May 2011 11:15:44 +0000 (11:15 +0000)
source/blender/editors/space_view3d/view3d_edit.c
source/blender/editors/space_view3d/view3d_view.c

index 9cb36e8e0f84d989a5ab118192de97aaad28a6dc..e86e56cfb8cca46f6b251da62f1771f0101aba98 100644 (file)
@@ -1777,7 +1777,7 @@ static int viewselected_exec(bContext *C, wmOperator *UNUSED(op)) /* like a loca
        sub_v3_v3v3(afm, max, min);
        size= MAX3(afm[0], afm[1], afm[2]);
 
-       if(rv3d->persp==RV3D_ORTHO) {
+       if(!rv3d->is_persp) {
                if(size < 0.0001f) { /* if its a sinble point. dont even re-scale */
                        ok_dist= 0;
                }
@@ -2034,7 +2034,7 @@ static int view3d_zoom_border_exec(bContext *C, wmOperator *op)
        cent[0] = (((double)rect.xmin)+((double)rect.xmax)) / 2;
        cent[1] = (((double)rect.ymin)+((double)rect.ymax)) / 2;
 
-       if (rv3d->persp==RV3D_PERSP) {
+       if (rv3d->is_persp) {
                double p_corner[3];
 
                /* no depths to use, we cant do anything! */
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);