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.
This commit is contained in:
Ken Hughes
2006-03-24 21:56:29 +00:00
parent b174a988ae
commit 927be3725a
2 changed files with 4 additions and 0 deletions

View File

@@ -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;