[#18159] Path -> toggle cyclic -> toggle cyclic again == path corrupted

was not recalculating the knots when the cyclic flag was disabled so the endpoint flag was being ignored until recalculating (extrude for eg).

Also removed unneeded re-allocation of curve knots which are always reallocated by makeknots.

Fixed another bug with which recalculating knots with the Python surface api. (mixed up u/v args to makeknots(..) )
This commit is contained in:
Campbell Barton
2009-02-18 03:13:57 +00:00
parent 28245a754e
commit f6b0b76fea
2 changed files with 11 additions and 50 deletions

View File

@@ -482,7 +482,7 @@ static int SurfNurb_setCyclicV( BPy_SurfNurb * self, PyObject * value )
self->nurb->flagv |= CU_CYCLIC;
else
self->nurb->flagv &= ~CU_CYCLIC;
makeknots( self->nurb, 2, self->nurb->flagu >> 1 );
makeknots( self->nurb, 2, self->nurb->flagv >> 1 );
return 0;
}