diff --git a/contrib/mobile/drawMesh.cpp b/contrib/mobile/drawMesh.cpp index e2bed3a74d5b99154b322c50baff64cdf3714f82..3694af0962830036bc7838ed4e52a28cd128aada 100644 --- a/contrib/mobile/drawMesh.cpp +++ b/contrib/mobile/drawMesh.cpp @@ -93,6 +93,13 @@ void drawMeshFace(GFace *f) drawArray(f->va_lines, GL_LINES, true); } +void drawMeshRegion(GRegion *r) +{ + if(!r->getVisibility()) return; + + drawArray(r->va_lines, GL_LINES, true); +} + void drawContext::drawMesh() { if(!CTX::instance()->mesh.draw) return; @@ -119,6 +126,8 @@ void drawContext::drawMesh() std::for_each(m->firstEdge(), m->lastEdge(), drawMeshEdge); if(status >= 2) std::for_each(m->firstFace(), m->lastFace(), drawMeshFace); + if(status >= 3) + std::for_each(m->firstRegion(), m->lastRegion(), drawMeshRegion); } CTX::instance()->mesh.changed = 0; }