svn merge ^/trunk/blender -r49573:49601
[blender.git] / source / blender / blenkernel / intern / mask.c
index 8bb3a0fd30671cf671ed0c190c6ac0938c78e3f9..01aa9fa9fa9fe05344c17775202cae28d84d1fb2 100644 (file)
@@ -1287,12 +1287,13 @@ MaskSplinePointUW *BKE_mask_point_sort_uw(MaskSplinePoint *point, MaskSplinePoin
 void BKE_mask_point_add_uw(MaskSplinePoint *point, float u, float w)
 {
        if (!point->uw)
-               point->uw = MEM_callocN(sizeof(*point->uw), "mask point uw");
+               point->uw = MEM_mallocN(sizeof(*point->uw), "mask point uw");
        else
                point->uw = MEM_reallocN(point->uw, (point->tot_uw + 1) * sizeof(*point->uw));
 
        point->uw[point->tot_uw].u = u;
        point->uw[point->tot_uw].w = w;
+       point->uw[point->tot_uw].flag = 0;
 
        point->tot_uw++;