- bug fix #2935, DAG update was not called on new boolean object

This commit is contained in:
2005-08-14 19:44:43 +00:00
parent 6784198d23
commit 15da1d13c7

View File

@@ -389,7 +389,7 @@ NewBooleanMesh(
Mesh *me2 = get_mesh(base_select->object);
Mesh *me = get_mesh(base->object);
Mesh *me_new = NULL;
Object *ob;
Object *ob, *ob_new = NULL;
int free_tface1,free_tface2;
float inv_mat[4][4];
@@ -526,7 +526,7 @@ NewBooleanMesh(
// Create a new blender mesh object - using 'base' as
// a template for the new object.
Object * ob_new= AddNewBlenderMesh(base);
ob_new= AddNewBlenderMesh(base);
// get the output descriptors
@@ -580,6 +580,10 @@ NewBooleanMesh(
FreeMeshDescriptors(&fd_1,&vd_1);
FreeMeshDescriptors(&fd_2,&vd_2);
if (ob_new) {
DAG_object_flush_update(G.scene, ob_new, OB_RECALC_DATA);
}
return success;
}