diff options
author | Ken Hughes <khughes@pacific.edu> | 2006-01-05 22:25:38 +0300 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2006-01-05 22:25:38 +0300 |
commit | 75032534f38e6609619f30fc2e511f717d37e74b (patch) | |
tree | 09f9f89067bb0512b2eddcd5e59fd5a2eef2f487 /source/blender/python/api2_2x/Ipo.c | |
parent | 1377e655319609eff89ab8febea456b2c0b9ae4e (diff) |
Bugfix for Toni: Ipo_addCurve() needed to call set_icu_vars() in order to
properly initialize data for new Ipo curves.
Diffstat (limited to 'source/blender/python/api2_2x/Ipo.c')
-rw-r--r-- | source/blender/python/api2_2x/Ipo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Ipo.c b/source/blender/python/api2_2x/Ipo.c index 51a70706ae4..74107bd396a 100644 --- a/source/blender/python/api2_2x/Ipo.c +++ b/source/blender/python/api2_2x/Ipo.c @@ -914,9 +914,9 @@ static PyObject *Ipo_addCurve( BPy_Ipo * self, PyObject * args ) /* create the new ipo curve */ 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= (short)param; + icu->flag |= IPO_VISIBLE|IPO_AUTO_HORIZ; + set_icu_vars( icu ); BLI_addtail( &(ipo->curve), icu); allspace( REMAKEIPO, 0 ); |