diff options
author | Ken Hughes <khughes@pacific.edu> | 2006-03-25 00:56:29 +0300 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2006-03-25 00:56:29 +0300 |
commit | 927be3725aa01d847dc9a10b0c5fc0eec5114564 (patch) | |
tree | c963bfd9fd048195b13abe5df6cebb3d51b83aee /source/blender/python/api2_2x/Lattice.c | |
parent | b174a988aefbe36d2d95b4966d4df27eea768a01 (diff) |
Bugfix #3818: nmesh.insertKey() was not letting Ipo space know to
recalculate, causing a segfault when the curve was selected in the Ipo
window. lattice.insertKey() has similar code. Added calls to
allspace(REMAKEIPO,0) to correct this.
Diffstat (limited to 'source/blender/python/api2_2x/Lattice.c')
-rw-r--r-- | source/blender/python/api2_2x/Lattice.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Lattice.c b/source/blender/python/api2_2x/Lattice.c index 739d9d3733d..05f9b03cd19 100644 --- a/source/blender/python/api2_2x/Lattice.c +++ b/source/blender/python/api2_2x/Lattice.c @@ -46,6 +46,7 @@ #include "DNA_scene_types.h" #include "BIF_editkey.h" #include "BIF_editdeform.h" +#include "BIF_space.h" #include "blendef.h" #include "gen_utils.h" @@ -759,6 +760,7 @@ static PyObject *Lattice_insertKey( BPy_Lattice * self, PyObject * args ) //insert a keybock for the lattice (1=relative) insert_lattkey( lt , 1); + allspace(REMAKEIPO, 0); if( frame > 0 ) G.scene->r.cfra = (short)oldfra; |