From ae3062b741f3951048df8b26e09ce61354c5248d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 8 Jun 2012 09:27:40 +0000 Subject: fix for own bug - evaluating past the last frame of a mask didnt work at all. --- source/blender/blenkernel/intern/mask.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'source') diff --git a/source/blender/blenkernel/intern/mask.c b/source/blender/blenkernel/intern/mask.c index 66f10aca652..1f1dc6a0cc8 100644 --- a/source/blender/blenkernel/intern/mask.c +++ b/source/blender/blenkernel/intern/mask.c @@ -1779,10 +1779,17 @@ int BKE_mask_layer_shape_find_frame_range(MaskLayer *masklay, const int frame, } } - *r_masklay_shape_a = NULL; - *r_masklay_shape_b = NULL; + if ((masklay_shape = masklay->splines_shapes.last)) { + *r_masklay_shape_a = masklay_shape; + *r_masklay_shape_b = NULL; + return 1; + } + else { + *r_masklay_shape_a = NULL; + *r_masklay_shape_b = NULL; - return 0; + return 0; + } } MaskLayerShape *BKE_mask_layer_shape_varify_frame(MaskLayer *masklay, const int frame) -- cgit v1.2.3