Fix crash with hidden bezier handles
[blender.git] / source / blender / src / transform_conversions.c
index 4be525f494574eabdf25e1835b009146b1ebd831..dcebf6b75578351cd5231cecd1fa2f44b05a3fa2 100644 (file)
@@ -1365,7 +1365,7 @@ static void createTransCurveVerts(TransInfo *t)
                                                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]);