mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
render links in editor
Render the navmesh links in the guiNavEditor not the offmeshconnectiontool, this way they are always visible.
This commit is contained in:
parent
cc047cf07f
commit
a5e969a8fd
2 changed files with 5 additions and 2 deletions
|
|
@ -285,8 +285,11 @@ void GuiNavEditorCtrl::renderScene(const RectI & updateRect)
|
||||||
mTool->onRender3D();
|
mTool->onRender3D();
|
||||||
|
|
||||||
duDebugDrawTorque d;
|
duDebugDrawTorque d;
|
||||||
if(!mMesh.isNull())
|
if (!mMesh.isNull())
|
||||||
|
{
|
||||||
mMesh->renderLinks(d);
|
mMesh->renderLinks(d);
|
||||||
|
d.immediateRender();
|
||||||
|
}
|
||||||
|
|
||||||
// Now draw all the 2d stuff!
|
// Now draw all the 2d stuff!
|
||||||
GFX->setClipRect(updateRect);
|
GFX->setClipRect(updateRect);
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,7 @@ void OffMeshConnectionTool::onRender3D()
|
||||||
dd.end();
|
dd.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
mNavMesh->renderLinks(dd);
|
//mNavMesh->renderLinks(dd);
|
||||||
|
|
||||||
dd.immediateRender();
|
dd.immediateRender();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue