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:
authorPeter Schlaile <peter@schlaile.de>2006-05-07 12:23:51 +0400
committerPeter Schlaile <peter@schlaile.de>2006-05-07 12:23:51 +0400
commit390380e97b67b846bd05046b0a93aeae488ce677 (patch)
tree34d8f375efd144048ff98b229a1f7804da0a2a56 /source/blender/python/api2_2x/Pose.c
parent53e777aae1471c13fbba2d86b84486fc0bec7641 (diff)
Bugfixes for frame number boost:
- Found several places, where people explicitly casted the frame number to short. - Fixed the crash in BPY_interface by adding an empty line (to make it recompile everywhere, make clean doesn't help...) For the build system maintainers: Problem was: The change in makesdna changed the position of the scriptlink structure. BPY_interface.c somehow didn't get recompiled (not even after a make clean!!!) which triggered crashes on adding scriptlinks.
Diffstat (limited to 'source/blender/python/api2_2x/Pose.c')
-rw-r--r--source/blender/python/api2_2x/Pose.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Pose.c b/source/blender/python/api2_2x/Pose.c
index 1fef31ed796..f19e7b366c6 100644
--- a/source/blender/python/api2_2x/Pose.c
+++ b/source/blender/python/api2_2x/Pose.c
@@ -463,7 +463,7 @@ static PyObject *PoseBone_insertKey(BPy_PoseBone *self, PyObject *args)
//set the frame we want insertion on
oldframe = G.scene->r.cfra;
- G.scene->r.cfra = (short)frame;
+ G.scene->r.cfra = frame;
//add the action channel if it's not there
verify_action_channel(((BPy_Object*)parent_object)->object->action,
@@ -498,7 +498,7 @@ static PyObject *PoseBone_insertKey(BPy_PoseBone *self, PyObject *args)
}
//flip the frame back
- G.scene->r.cfra = (short)oldframe;
+ G.scene->r.cfra = oldframe;
//update the IPOs
remake_action_ipos (((BPy_Object*)parent_object)->object->action);