diff options
author | Ken Hughes <khughes@pacific.edu> | 2005-12-17 07:57:48 +0300 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2005-12-17 07:57:48 +0300 |
commit | f73f226ed7338b8a0384bbada10ac80a3d5acbdd (patch) | |
tree | f3967c7879a7ff69583d0916482baac906802a9f /source/blender/python/api2_2x/Ipocurve.c | |
parent | e76e78e78a9ab31b5e7c13fe76115f360ac8436b (diff) |
-- Bugfix #3617; addBezier() was not initializing all the attributes for
a the beztriple, so things like the hidden and handle select states were
set to random values. Added a beztriple.hide attribute so that the
hide attribute can be set/cleared from the BPy API.
Diffstat (limited to 'source/blender/python/api2_2x/Ipocurve.c')
-rw-r--r-- | source/blender/python/api2_2x/Ipocurve.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Ipocurve.c b/source/blender/python/api2_2x/Ipocurve.c index 3b6b9bdced4..608458e476d 100644 --- a/source/blender/python/api2_2x/Ipocurve.c +++ b/source/blender/python/api2_2x/Ipocurve.c @@ -405,9 +405,11 @@ static PyObject *IpoCurve_addBezier( C_IpoCurve * self, PyObject * args ) bzt->vec[0][1] = y - 1; bzt->vec[1][1] = y; bzt->vec[2][1] = y + 1; + bzt->vec[0][2] = bzt->vec[1][2] = bzt->vec[2][2] = 0.0; /* set handle type to Auto */ - bzt->h1 = HD_AUTO; - bzt->h2 = HD_AUTO; + bzt->h1 = bzt->h2 = HD_AUTO; + bzt->f1 = bzt->f2 = bzt->f3= 0; + bzt->hide = IPO_BEZ; Py_INCREF( Py_None ); return Py_None; |