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;

View File

@@ -50,6 +50,7 @@
#include "BIF_editdeform.h"
#include "BIF_editkey.h" /* insert_meshkey */
#include "BIF_editview.h"
#include "BIF_space.h"
#include "BKE_deform.h"
#include "BKE_mesh.h"
@@ -1255,6 +1256,7 @@ static PyObject *NMesh_insertKey( PyObject * self, PyObject * args )
"update this NMesh first with its .update() method" );
insert_meshkey( mesh, typenum );
allspace(REMAKEIPO, 0);
if( fra > 0 )
G.scene->r.cfra = (short)oldfra;