when converting curves from poly -> nurbs, dont enable Bezier-U flag.
authorCampbell Barton <ideasman42@gmail.com>
Sun, 31 Jul 2011 07:58:50 +0000 (07:58 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 31 Jul 2011 07:58:50 +0000 (07:58 +0000)
Not sure why this was enabled, possibly from copy/paste with bezier->nurbs code?

If you have meny poly lines there was no nice way to convert these into a smoothed nurbs curve.
Ran into this when trying to convert generated ivy into smooth nurbs.

source/blender/editors/curve/editcurve.c

index 8b9477adf926d556768a8e2c8b0ea18eee4ff706..210f36ca074c45630273904af82592a329b11af4 100644 (file)
@@ -3432,7 +3432,6 @@ static int convertspline(short type, Nurb *nu)
                        nu->type = CU_NURBS;
                        nu->orderu= 4;
                        nu->flagu &= CU_NURB_CYCLIC; /* disable all flags except for cyclic */
-                       nu->flagu |= CU_NURB_BEZIER;
                        nurbs_knot_calc_u(nu);
                        a= nu->pntsu*nu->pntsv;
                        bp= nu->bp;