From 5166a1ee9250a04cc499f1c97cdcb5fe35603987 Mon Sep 17 00:00:00 2001 From: Ken Hughes Date: Mon, 17 Oct 2005 03:48:02 +0000 Subject: - 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. --- source/blender/python/api2_2x/Ipo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/python/api2_2x/Ipo.c') 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 ); -- cgit v1.2.3