Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-02-01 01:32:06 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-01 01:32:06 +0400
commit2050ab09a5514290402f53a0ae0331763b8c1cf9 (patch)
tree3298de4c65388de0343867683e97095c90ffe907 /source/blender/modifiers
parent888187fa8cb32b9ec53da3ab07f77bebf8f9a39a (diff)
calc_curve_deform was using axis range of 1-6, but other parts of the code use 0-5. (confusion here casued an error in the code).
make calc_curve_deform use 0-5 too, only minor changes needed.
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_curve.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_curve.c b/source/blender/modifiers/intern/MOD_curve.c
index 9a7dd3fc898..5ce05e5e062 100644
--- a/source/blender/modifiers/intern/MOD_curve.c
+++ b/source/blender/modifiers/intern/MOD_curve.c
@@ -119,8 +119,10 @@ static void deformVerts(ModifierData *md, Object *ob,
{
CurveModifierData *cmd = (CurveModifierData*) md;
+ /* silly that defaxis and curve_deform_verts are off by 1
+ * but leave for now to save having to call do_versions */
curve_deform_verts(md->scene, cmd->object, ob, derivedData, vertexCos, numVerts,
- cmd->name, cmd->defaxis);
+ cmd->name, cmd->defaxis-1);
}
static void deformVertsEM(