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-10-17 07:48:02 +0400
committerKen Hughes <khughes@pacific.edu>2005-10-17 07:48:02 +0400
commit5166a1ee9250a04cc499f1c97cdcb5fe35603987 (patch)
tree6a3cfd243b2db366984cc9731f3e0b63d7123375 /source/blender/python/api2_2x/Ipo.c
parent0ea46ec202cd789d386eefa3e12018cb2bde56b0 (diff)
- Bugfix #3202: ipo.addCurve() created curve but didn't add to the Ipo
(thanks, lguillaume). I think we need much more testing of the Ipo module following Ton's refactoring.
Diffstat (limited to 'source/blender/python/api2_2x/Ipo.c')
-rw-r--r--source/blender/python/api2_2x/Ipo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Ipo.c b/source/blender/python/api2_2x/Ipo.c
index 8ecd3bb5041..fbb03933fc8 100644
--- a/source/blender/python/api2_2x/Ipo.c
+++ b/source/blender/python/api2_2x/Ipo.c
@@ -914,11 +914,12 @@ static PyObject *Ipo_addCurve( BPy_Ipo * self, PyObject * args )
( PyExc_NameError, "curve name was invalid" );
/* create the new ipo curve */
- icu = MEM_callocN(sizeof(IpoCurve), "Pyhon added ipocurve");
+ icu = MEM_callocN(sizeof(IpoCurve), "Python added ipocurve");
icu->blocktype= ipo->blocktype;
icu->flag |= IPO_VISIBLE|IPO_AUTO_HORIZ;
icu->blocktype= ipo->blocktype;
icu->adrcode= param;
+ BLI_addtail( &(ipo->curve), icu);
allspace( REMAKEIPO, 0 );
EXPP_allqueue( REDRAWIPO, 0 );