Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Hughes <khughes@pacific.edu>2005-12-17 07:57:48 +0300
committerKen Hughes <khughes@pacific.edu>2005-12-17 07:57:48 +0300
commitf73f226ed7338b8a0384bbada10ac80a3d5acbdd (patch)
treef3967c7879a7ff69583d0916482baac906802a9f /source/blender/python/api2_2x/Ipocurve.c
parente76e78e78a9ab31b5e7c13fe76115f360ac8436b (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.c6
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;