diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-08 13:27:40 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-08 13:27:40 +0400 |
commit | ae3062b741f3951048df8b26e09ce61354c5248d (patch) | |
tree | 449ce9d74295ac4a508670c9b13b4ad46ef61f25 /source | |
parent | de7fe937ff24121ce8c66af902639cd96244a55f (diff) |
fix for own bug - evaluating past the last frame of a mask didnt work at all.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/mask.c | 13 |
1 files changed, 10 insertions, 3 deletions
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) |