Mask editing: remove use_parent property and use check if paren't id is set instead
[blender.git] / source / blender / editors / mask / mask_draw.c
index e580088e25b49616d3ab8e126276b422d0a008e0..e1efb6d841b1b517c0f6a226dec1ec8e1c020566 100644 (file)
@@ -32,7 +32,6 @@
 #include "MEM_guardedalloc.h"
 
 #include "BLI_utildefines.h"
-#include "BLI_math.h"
 
 #include "BKE_context.h"
 #include "BKE_mask.h"
 #include "DNA_mask_types.h"
 #include "DNA_object_types.h"   /* SELECT */
 
-#include "ED_mask.h"
-
+#include "ED_mask.h"  /* own include */
 #include "BIF_gl.h"
-#include "BIF_glutil.h"
 
 #include "UI_resources.h"
 
@@ -103,7 +100,7 @@ static void draw_spline_parents(MaskLayer *UNUSED(masklay), MaskSpline *spline)
                MaskSplinePoint *point = &points_array[i];
                BezTriple *bezt = &point->bezt;
 
-               if (point->parent.flag & MASK_PARENT_ACTIVE) {
+               if (point->parent.id) {
                        glVertex2f(bezt->vec[1][0],
                                   bezt->vec[1][1]);