Made navmesh links render over the top of the mesh.

This commit is contained in:
Daniel Buckmaster 2014-11-29 11:59:00 +11:00
parent 163b14fac1
commit 199d98d096

View file

@ -1369,11 +1369,11 @@ void NavMesh::renderLinks(duDebugDraw &dd)
{ {
if(mBuilding) if(mBuilding)
return; return;
dd.depthMask(false); dd.depthMask(true);
dd.begin(DU_DRAW_LINES); dd.begin(DU_DRAW_LINES);
for(U32 i = 0; i < mLinkIDs.size(); i++) for(U32 i = 0; i < mLinkIDs.size(); i++)
{ {
unsigned int col = 0; U32 col = 0;
switch(mLinkSelectStates[i]) switch(mLinkSelectStates[i])
{ {
case Unselected: col = mLinksUnsynced[i] ? duRGBA(255, 0, 0, 200) : duRGBA(0, 0, 255, 255); break; case Unselected: col = mLinksUnsynced[i] ? duRGBA(255, 0, 0, 200) : duRGBA(0, 0, 255, 255); break;
@ -1394,7 +1394,6 @@ void NavMesh::renderLinks(duDebugDraw &dd)
duAppendCircle(&dd, e[0], e[1], e[2], mLinkRads[i], col); duAppendCircle(&dd, e[0], e[1], e[2], mLinkRads[i], col);
} }
dd.end(); dd.end();
dd.depthMask(true);
} }
void NavMesh::renderTileData(duDebugDrawTorque &dd, U32 tile) void NavMesh::renderTileData(duDebugDrawTorque &dd, U32 tile)