forked from bartvdbraak/blender
added a warning in python api abot ipo curves. minor change to curve.c
This commit is contained in:
parent
7015700e99
commit
66374761e1
@ -1976,7 +1976,7 @@ float calc_curve_subdiv_radius(Curve *cu, Nurb *nu, int cursubdiv)
|
|||||||
if ( ((nu->type & 7)==CU_NURBS) && (nu->flagu & CU_CYCLIC)) {
|
if ( ((nu->type & 7)==CU_NURBS) && (nu->flagu & CU_CYCLIC)) {
|
||||||
if (bp >= bplast) bp = bpfirst;
|
if (bp >= bplast) bp = bpfirst;
|
||||||
else bp++;
|
else bp++;
|
||||||
} else if ( bp >= bplast ) {
|
} else if ( bp > bplast ) {
|
||||||
/* this can happen in rare cases, refer to bug [#8596] */
|
/* this can happen in rare cases, refer to bug [#8596] */
|
||||||
bp = bplast;
|
bp = bplast;
|
||||||
}
|
}
|
||||||
@ -1985,7 +1985,7 @@ float calc_curve_subdiv_radius(Curve *cu, Nurb *nu, int cursubdiv)
|
|||||||
|
|
||||||
if ((bp == bplast) && (nu->flagu & CU_CYCLIC)) { /* loop around */
|
if ((bp == bplast) && (nu->flagu & CU_CYCLIC)) { /* loop around */
|
||||||
bp= bpfirst;
|
bp= bpfirst;
|
||||||
} else if (bp != bplast) {
|
} else if (bp < bplast) {
|
||||||
bp++;
|
bp++;
|
||||||
}
|
}
|
||||||
nextrad = bp->radius;
|
nextrad = bp->radius;
|
||||||
|
@ -11,6 +11,8 @@ This module provides access to the IpoCurve data in Blender. An Ipo is
|
|||||||
composed of several IpoCurves, and an IpoCurve are composed of several
|
composed of several IpoCurves, and an IpoCurve are composed of several
|
||||||
BezTriples.
|
BezTriples.
|
||||||
|
|
||||||
|
@warning: Ipo curves store euler rotations as degrees/10.0 so 180.0 would be 18.0
|
||||||
|
|
||||||
Example::
|
Example::
|
||||||
import Blender
|
import Blender
|
||||||
ipo = Blender.Ipo.Get('ObIpo') # retrieves an Ipo object
|
ipo = Blender.Ipo.Get('ObIpo') # retrieves an Ipo object
|
||||||
|
Loading…
Reference in New Issue
Block a user