Fix crash with hidden bezier handles
authorMartin Poirier <theeth@yahoo.com>
Fri, 30 May 2008 09:05:09 +0000 (09:05 +0000)
committerMartin Poirier <theeth@yahoo.com>
Fri, 30 May 2008 09:05:09 +0000 (09:05 +0000)
See Cambo, that's why we have module owners.

source/blender/src/transform_conversions.c

index 4be525f494574eabdf25e1835b009146b1ebd831..dcebf6b75578351cd5231cecd1fa2f44b05a3fa2 100644 (file)
@@ -1365,7 +1365,7 @@ static void createTransCurveVerts(TransInfo *t)
                                                tail++;
                                        }
                                        if(             propmode ||
                                                tail++;
                                        }
                                        if(             propmode ||
-                                                       ((bezt->f1 & SELECT) && (G.f & G_HIDDENHANDLES)) ||
+                                                       ((bezt->f2 & SELECT) && (G.f & G_HIDDENHANDLES)) ||
                                                        ((bezt->f3 & SELECT) && (G.f & G_HIDDENHANDLES)==0)
                                          ) {
                                                VECCOPY(td->iloc, bezt->vec[2]);
                                                        ((bezt->f3 & SELECT) && (G.f & G_HIDDENHANDLES)==0)
                                          ) {
                                                VECCOPY(td->iloc, bezt->vec[2]);