From e6381a04d67ad8e4ea8a7cb9aef779ceeee9dbaa Mon Sep 17 00:00:00 2001 From: Ken Hughes Date: Tue, 26 Dec 2006 19:47:34 +0000 Subject: [PATCH] Python API ---------- Bugfix: fix my own over-optimization in insertIpoKey(), allow IPOKEY_LOCROT and IPOKEY_LOCROTSIZE to again set rotation and size Ipo curves. --- source/blender/python/api2_2x/Object.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/blender/python/api2_2x/Object.c b/source/blender/python/api2_2x/Object.c index eb0c2911096..28cd0dcd0f3 100644 --- a/source/blender/python/api2_2x/Object.c +++ b/source/blender/python/api2_2x/Object.c @@ -2356,17 +2356,18 @@ static PyObject *Object_insertIpoKey( BPy_Object * self, PyObject * args ) insertkey((ID *)ob, ID_OB, actname, NULL,OB_LOC_Y); insertkey((ID *)ob, ID_OB, actname, NULL,OB_LOC_Z); } - else if (key == IPOKEY_ROT || key == IPOKEY_LOCROT || key == IPOKEY_LOCROTSIZE){ + if (key == IPOKEY_ROT || key == IPOKEY_LOCROT || key == IPOKEY_LOCROTSIZE){ insertkey((ID *)ob, ID_OB, actname, NULL,OB_ROT_X); insertkey((ID *)ob, ID_OB, actname, NULL,OB_ROT_Y); insertkey((ID *)ob, ID_OB, actname, NULL,OB_ROT_Z); } - else if (key == IPOKEY_SIZE || key == IPOKEY_LOCROTSIZE ){ + if (key == IPOKEY_SIZE || key == IPOKEY_LOCROTSIZE ){ insertkey((ID *)ob, ID_OB, actname, NULL,OB_SIZE_X); insertkey((ID *)ob, ID_OB, actname, NULL,OB_SIZE_Y); insertkey((ID *)ob, ID_OB, actname, NULL,OB_SIZE_Z); } - else if (key == IPOKEY_PI_STRENGTH ){ + + if (key == IPOKEY_PI_STRENGTH ){ insertkey((ID *)ob, ID_OB, actname, NULL, OB_PD_FSTR); } else if (key == IPOKEY_PI_FALLOFF ){ insertkey((ID *)ob, ID_OB, actname, NULL, OB_PD_FFALL);