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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user