diff options
author | Peter Schlaile <peter@schlaile.de> | 2006-05-07 12:23:51 +0400 |
---|---|---|
committer | Peter Schlaile <peter@schlaile.de> | 2006-05-07 12:23:51 +0400 |
commit | 390380e97b67b846bd05046b0a93aeae488ce677 (patch) | |
tree | 34d8f375efd144048ff98b229a1f7804da0a2a56 /source/blender/python/api2_2x/Lattice.c | |
parent | 53e777aae1471c13fbba2d86b84486fc0bec7641 (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/Lattice.c')
-rw-r--r-- | source/blender/python/api2_2x/Lattice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Lattice.c b/source/blender/python/api2_2x/Lattice.c index 05f9b03cd19..117699adeb7 100644 --- a/source/blender/python/api2_2x/Lattice.c +++ b/source/blender/python/api2_2x/Lattice.c @@ -752,7 +752,7 @@ static PyObject *Lattice_insertKey( BPy_Lattice * self, PyObject * args ) if( frame > 0 ) { frame = EXPP_ClampInt( frame, 1, MAXFRAME ); oldfra = G.scene->r.cfra; - G.scene->r.cfra = (short)frame; + G.scene->r.cfra = (int)frame; } // else just use current frame, then // return (EXPP_ReturnPyObjError (PyExc_RuntimeError, @@ -763,7 +763,7 @@ static PyObject *Lattice_insertKey( BPy_Lattice * self, PyObject * args ) allspace(REMAKEIPO, 0); if( frame > 0 ) - G.scene->r.cfra = (short)oldfra; + G.scene->r.cfra = (int)oldfra; Py_INCREF( Py_None ); return Py_None; |