diff options
author | Ken Hughes <khughes@pacific.edu> | 2005-10-17 07:48:02 +0400 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2005-10-17 07:48:02 +0400 |
commit | 5166a1ee9250a04cc499f1c97cdcb5fe35603987 (patch) | |
tree | 6a3cfd243b2db366984cc9731f3e0b63d7123375 /source | |
parent | 0ea46ec202cd789d386eefa3e12018cb2bde56b0 (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')
-rw-r--r-- | source/blender/python/api2_2x/Ipo.c | 3 |
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 ); |