- added DirectMesh.getVert{Co,No} functions
- added mesh_get_derived_deform function (always returns a DerivedMesh corresponding to deformed (but not subdivided) mesh). used in places where original mesh is to be displayed but with deformed coordinates (vpaint for example). - added DirectMesh.getVert{Co,No} implementations for MeshDerivedMesh - updated vpaint to use mesh_get_derived_deform
This commit is contained in:
@@ -1783,14 +1783,10 @@ static void draw_mesh_fancy(Object *ob, DerivedMesh *baseDM, DerivedMesh *realDM
|
||||
int hasHaloMat = (ma && (ma->mode&MA_HALO));
|
||||
int draw_wire = ob->dtx&OB_DRAWWIRE;
|
||||
DispList *dl;
|
||||
float *obExtVerts;
|
||||
DerivedMesh *dm = realDM?realDM:baseDM;
|
||||
|
||||
glFrontFace((ob->transflag&OB_NEG_SCALE)?GL_CW:GL_CCW);
|
||||
|
||||
dl = find_displist(&ob->disp, DL_VERTS);
|
||||
obExtVerts = dl?dl->verts:NULL;
|
||||
|
||||
// Unwanted combination.
|
||||
if (G.f&G_FACESELECT) draw_wire = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user