[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [49076] branches/soc-2011-tomato/source/ blender/blenkernel/intern/mask.c: Mask rasteriyer: fixed wrong bounding box calculation
Sergey Sharybin
sergey.vfx at gmail.com
Fri Jul 20 12:35:46 CEST 2012
Revision: 49076
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49076
Author: nazgul
Date: 2012-07-20 10:35:46 +0000 (Fri, 20 Jul 2012)
Log Message:
-----------
Mask rasteriyer: fixed wrong bounding box calculation
for non-cyclic splines
Modified Paths:
--------------
branches/soc-2011-tomato/source/blender/blenkernel/intern/mask.c
Modified: branches/soc-2011-tomato/source/blender/blenkernel/intern/mask.c
===================================================================
--- branches/soc-2011-tomato/source/blender/blenkernel/intern/mask.c 2012-07-20 10:33:15 UTC (rev 49075)
+++ branches/soc-2011-tomato/source/blender/blenkernel/intern/mask.c 2012-07-20 10:35:46 UTC (rev 49076)
@@ -556,6 +556,8 @@
int next = i + 1;
float delta;
+ DO_MINMAX2(feather_points[i], min, max);
+
if (next == tot_feather_point) {
if (spline->flag & MASK_SPLINE_CYCLIC)
next = 0;
@@ -570,8 +572,6 @@
delta = fabsf(feather_points[i][1] - feather_points[next][1]);
if (delta > max_delta_y)
max_delta_y = delta;
-
- DO_MINMAX2(feather_points[i], min, max);
}
/* use dynamically calculated buckets per side, so we likely wouldn't
More information about the Bf-blender-cvs
mailing list