Mask editing: remove use_parent property and use check if paren't id is set instead
[blender.git] / source / blender / editors / mask / mask_relationships.c
index 0e893ee2f9ff24196e0074192f806080ac3e0c93..7c0a598ba9f8a8f9c5c76bf9433c071fc44ee287 100644 (file)
@@ -66,7 +66,7 @@ static int mask_parent_clear_exec(bContext *C, wmOperator *UNUSED(op))
                                MaskSplinePoint *point = &spline->points[i];
 
                                if (MASKPOINT_ISSEL_ANY(point)) {
-                                       point->parent.flag &= ~MASK_PARENT_ACTIVE;
+                                       point->parent.id = NULL;
                                }
                        }
                }
@@ -141,8 +141,6 @@ static int mask_parent_set_exec(bContext *C, wmOperator *UNUSED(op))
                                        strcpy(point->parent.parent, tracking->name);
                                        strcpy(point->parent.sub_parent, track->name);
 
-                                       point->parent.flag |= MASK_PARENT_ACTIVE;
-
                                        copy_v2_v2(point->parent.parent_orig, parmask_pos);
                                }
                        }