- various bugs fixed

This commit is contained in:
Guido Ranzuglia 2016-09-12 08:58:29 +02:00
parent 01787cad96
commit cb4f24383f
2 changed files with 14 additions and 6 deletions

View File

@ -111,6 +111,7 @@ static void WedgeTexFromVertexTex(ComputeMeshType &m)
{ {
(*fi).WT(i).U() = (*fi).V(i)->T().U(); (*fi).WT(i).U() = (*fi).V(i)->T().U();
(*fi).WT(i).V() = (*fi).V(i)->T().V(); (*fi).WT(i).V() = (*fi).V(i)->T().V();
(*fi).WT(i).N() = 0;
} }
} }
} }

View File

@ -1307,14 +1307,21 @@ namespace vcg
} }
bool solidtoo = dt.isPrimitiveActive(PR_SOLID); bool solidtoo = dt.isPrimitiveActive(PR_SOLID);
/*EDGE | TRI | DRAW
---------------------------------
TRUE TRUE EDGE
TRUE FALSE EDGE
FALSE TRUE TRI
FALSE FALSE NOTHING */
if (dt.isPrimitiveActive(PR_WIREFRAME_EDGES))
drawEdges(dt._intatts[size_t(PR_WIREFRAME_EDGES)], dt._glopts);
else
{
if (dt.isPrimitiveActive(PR_WIREFRAME_TRIANGLES)) if (dt.isPrimitiveActive(PR_WIREFRAME_TRIANGLES))
{ {
drawWiredTriangles(dt._intatts[size_t(PR_WIREFRAME_TRIANGLES)], dt._glopts, textid); drawWiredTriangles(dt._intatts[size_t(PR_WIREFRAME_TRIANGLES)], dt._glopts, textid);
} }
else
{
if (dt.isPrimitiveActive(PR_WIREFRAME_EDGES))
drawEdges(dt._intatts[size_t(PR_WIREFRAME_EDGES)], dt._glopts);
} }
if (pointstoo || solidtoo) if (pointstoo || solidtoo)