fix error in prev commit

This commit is contained in:
Campbell Barton
2012-05-25 11:51:56 +00:00
parent e70316f3b2
commit 94fc1f5f4a

View File

@@ -1348,7 +1348,7 @@ void BKE_mask_object_shape_changed_add(MaskObject *maskobj, int index,
&spline, &spline_point_index))
{
/* sanity check */
int tot = BKE_mask_object_shape_totvert(maskobj);
int tot = BKE_mask_object_shape_totvert(maskobj) - 1;
/* for interpolation */
/* TODO - assumes closed curve for now */