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:
authorCampbell Barton <ideasman42@gmail.com>2007-03-03 04:29:22 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-03-03 04:29:22 +0300
commit8437b84c45ac39ba8391094a4cafc2f2a35951c9 (patch)
tree206762860daa8511441eabb9868caeabb9e2d02a /source/blender/python/api2_2x/Pose.c
parent88ed461ef42eab1272b1b5de0bcddce4101ea330 (diff)
Pose.c - added option not to update IPO's when adding a keyframe to a bone.
bvh_import.py - delaying IPO updates gives a significant speedup. - IPO's use linear interpolation now - Added an option to loop the animation. - fix for own bug, importing to empties never worked.
Diffstat (limited to 'source/blender/python/api2_2x/Pose.c')
-rw-r--r--source/blender/python/api2_2x/Pose.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Pose.c b/source/blender/python/api2_2x/Pose.c
index 2b19668cd67..ea26c855477 100644
--- a/source/blender/python/api2_2x/Pose.c
+++ b/source/blender/python/api2_2x/Pose.c
@@ -407,11 +407,11 @@ static PyObject *PoseBone_insertKey(BPy_PoseBone *self, PyObject *args)
{
PyObject *parent_object = NULL;
PyObject *constants = NULL, *item = NULL;
- int frame = 1, oldframe, length, x, numeric_value = 0, oldflag;
+ int frame = 1, oldframe, length, x, numeric_value = 0, oldflag, no_ipo_update = 0;
bPoseChannel *pchan = NULL;
- if (!PyArg_ParseTuple(args, "O!i|O", &Object_Type, &parent_object, &frame, &constants ))
+ if (!PyArg_ParseTuple(args, "O!i|Oi", &Object_Type, &parent_object, &frame, &constants, &no_ipo_update ))
goto AttributeError;
//verify that this pchannel is part of the object->pose
@@ -511,7 +511,8 @@ static PyObject *PoseBone_insertKey(BPy_PoseBone *self, PyObject *args)
G.scene->r.cfra = oldframe;
//update the IPOs
- remake_action_ipos (((BPy_Object*)parent_object)->object->action);
+ if (!no_ipo_update)
+ remake_action_ipos (((BPy_Object*)parent_object)->object->action);
Py_RETURN_NONE;