Fix #30647: Error in wire drawing of subsurf

Patch by Nicholas Bishop, thanks!
This commit is contained in:
Sergey Sharybin 2012-03-26 12:20:46 +00:00
parent 2743f2bb3f
commit 5e764bf848

@ -1490,7 +1490,7 @@ static void ccgdm_pbvh_update(CCGDerivedMesh *ccgdm)
} }
} }
static void ccgDM_drawEdges(DerivedMesh *dm, int drawLooseEdges, int UNUSED(drawAllEdges)) static void ccgDM_drawEdges(DerivedMesh *dm, int drawLooseEdges, int drawAllEdges)
{ {
CCGDerivedMesh *ccgdm = (CCGDerivedMesh*) dm; CCGDerivedMesh *ccgdm = (CCGDerivedMesh*) dm;
CCGSubSurf *ss = ccgdm->ss; CCGSubSurf *ss = ccgdm->ss;
@ -1510,7 +1510,7 @@ static void ccgDM_drawEdges(DerivedMesh *dm, int drawLooseEdges, int UNUSED(draw
if (!drawLooseEdges && !ccgSubSurf_getEdgeNumFaces(e)) if (!drawLooseEdges && !ccgSubSurf_getEdgeNumFaces(e))
continue; continue;
if (ccgdm->edgeFlags && !(ccgdm->edgeFlags[j] & ME_EDGEDRAW)) if (!drawAllEdges && ccgdm->edgeFlags && !(ccgdm->edgeFlags[j] & ME_EDGEDRAW))
continue; continue;
if (useAging && !(G.f&G_BACKBUFSEL)) { if (useAging && !(G.f&G_BACKBUFSEL)) {