Assorted loose ends for auto-clamped handles work
[blender.git] / source / blender / blenkernel / intern / curve.c
index 2f1a85c57b314bd0bb130bbfefa1e0e182973668..b1beb6c449afac94df1d4a32139fad0085f99d7c 100644 (file)
@@ -2674,15 +2674,15 @@ void testhandlesNurb(Nurb *nu)
                if(bezt->f1 & SELECT) flag++;
                if(bezt->f2 & SELECT) flag += 2;
                if(bezt->f3 & SELECT) flag += 4;
-
+               
                if( !(flag==0 || flag==7) ) {
-                       if(bezt->h1==HD_AUTO) {   /* auto */
+                       if(ELEM(bezt->h1, HD_AUTO, HD_AUTO_ANIM)) {   /* auto */
                                bezt->h1= HD_ALIGN;
                        }
-                       if(bezt->h2==HD_AUTO) {   /* auto */
+                       if(ELEM(bezt->h2, HD_AUTO, HD_AUTO_ANIM)) {   /* auto */
                                bezt->h2= HD_ALIGN;
                        }
-
+                       
                        if(bezt->h1==HD_VECT) {   /* vector */
                                if(flag < 4) bezt->h1= 0;
                        }
@@ -2692,7 +2692,7 @@ void testhandlesNurb(Nurb *nu)
                }
                bezt++;
        }
-
+       
        calchandlesNurb(nu);
 }