[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [47603] trunk/blender/source/blender/ blenkernel/intern/mask.c: fix for own bug - evaluating past the last frame of a mask didnt work at all .
Campbell Barton
ideasman42 at gmail.com
Fri Jun 8 11:27:54 CEST 2012
Revision: 47603
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=47603
Author: campbellbarton
Date: 2012-06-08 09:27:40 +0000 (Fri, 08 Jun 2012)
Log Message:
-----------
fix for own bug - evaluating past the last frame of a mask didnt work at all.
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/intern/mask.c
Modified: trunk/blender/source/blender/blenkernel/intern/mask.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/mask.c 2012-06-08 09:17:07 UTC (rev 47602)
+++ trunk/blender/source/blender/blenkernel/intern/mask.c 2012-06-08 09:27:40 UTC (rev 47603)
@@ -1779,10 +1779,17 @@
}
}
- *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)
More information about the Bf-blender-cvs
mailing list