diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2010-03-24 22:04:32 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2010-03-24 22:04:32 +0300 |
commit | cf07f4725b149f2c07f4ef8fdc0c086b52fe50fd (patch) | |
tree | 033545e841400f76e5097d678b301d12589409d0 /source/blender/editors/curve | |
parent | 0c1828b229fdbc5dd64596f2779e4b2b8bdb6b07 (diff) |
Fixed bug with incorrect cyclic beizer curve subdivision.
Diffstat (limited to 'source/blender/editors/curve')
-rw-r--r-- | source/blender/editors/curve/editcurve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/curve/editcurve.c b/source/blender/editors/curve/editcurve.c index 189c2efc4c5..b5ecc76263c 100644 --- a/source/blender/editors/curve/editcurve.c +++ b/source/blender/editors/curve/editcurve.c @@ -1956,7 +1956,7 @@ static void subdividenurb(Object *obedit, int number_cuts) interp_v3_v3v3(beztn->vec[1], vec+9, vec+12, factor); VECCOPY(beztn->vec[2], vec+12); /* handle of next bezt */ - if(a==0 && (nu->flagu & CU_NURB_CYCLIC)) {VECCOPY(beztnew->vec[0], vec+6);} + if(a==0 && i == number_cuts - 1 && (nu->flagu & CU_NURB_CYCLIC)) {VECCOPY(beztnew->vec[0], vec+6);} else {VECCOPY(bezt->vec[0], vec+6);} beztn->radius = (prevbezt->radius + bezt->radius)/2; |