== Multires ==

Fixed bug #5820, changing multires in edit mode turns the mesh black

* Added a call to recalc_editnormals when building an editmesh from a multires mesh.
This commit is contained in:
Nicholas Bishop
2007-01-27 17:45:23 +00:00
parent 893e93bb5f
commit 3a60699429

View File

@@ -1199,16 +1199,17 @@ void multires_level_to_mesh(Object *ob, Mesh *me)
}
mesh_update_customdata_pointers(me);
if(em) {
MEM_freeN(eves);
DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
recalc_editnormals();
} else {
multires_edge_level_update(ob,me);
DAG_object_flush_update(G.scene, ob, OB_RECALC_DATA);
mesh_calc_normals(me->mvert, me->totvert, me->mface, me->totface, NULL);
}
mesh_update_customdata_pointers(me);
/* friendly check for background render */
if(G.background==0) {