- switch displistmesh_to_mesh to just dupalloc the mface's

- added verteCos argument to sbObjectReset, lack of this was
   causing softbody objects to not be initialized with deform
 - made convert-to-mesh option call DAG_scene_sort, prevents
   crashes due to obsolete object pointer
This commit is contained in:
2005-07-24 18:16:40 +00:00
parent aefd9e462f
commit 13e6257ddf
5 changed files with 14 additions and 29 deletions

View File

@@ -2191,13 +2191,12 @@ void convertmenu(void)
me->mat= MEM_dupallocN(oldme->mat);
for(a=0; a<ob1->totcol; a++) id_us_plus((ID *)me->mat[a]);
}
dm= mesh_create_derived_no_deform(ob, NULL);
dlm= dm->convertToDispListMesh(dm);
dm->release(dm);
displistmesh_to_mesh(dlm, ob1->data);
displistmesh_free(dlm);
dm->release(dm);
}
else if(ob->type==OB_FONT) {
if(nr==1) {
@@ -2297,14 +2296,14 @@ void convertmenu(void)
free_and_unlink_base(basedel);
basedel = NULL;
}
countall();
allqueue(REDRAWVIEW3D, 0);
allqueue(REDRAWOOPS, 0);
allqueue(REDRAWBUTSEDIT, 0);
BIF_undo_push("Convert Object");
DAG_scene_flush_update(G.scene);
DAG_scene_sort(G.scene);
}
/* Change subdivision properties of mesh object ob, if