mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
updated drawmodes and rendering
DebugDraw for recast now caches the results We now have a drawmode dropdown selector drawmode changes come from the gui itself no longer from console values all recast drawmodes are supported with the exception of drawmodes that add abilities like navqueries until the nav tester tool is imlpemented.
This commit is contained in:
parent
30b9502e90
commit
d1771756c2
12 changed files with 548 additions and 53 deletions
|
|
@ -686,6 +686,20 @@ void GuiNavEditorCtrl::setActiveTool(NavMeshTool* tool)
|
|||
}
|
||||
}
|
||||
|
||||
void GuiNavEditorCtrl::setDrawMode(S32 id)
|
||||
{
|
||||
if (mMesh.isNull())
|
||||
return;
|
||||
|
||||
mMesh->setDrawMode((NavMesh::DrawMode)id);
|
||||
}
|
||||
|
||||
DefineEngineMethod(GuiNavEditorCtrl, setDrawMode, void, (S32 id), ,
|
||||
"@brief Deselect whatever is currently selected in the editor.")
|
||||
{
|
||||
object->setDrawMode(id);
|
||||
}
|
||||
|
||||
DefineEngineMethod(GuiNavEditorCtrl, setActiveTool, void, (const char* toolName), , "( NavMeshTool tool )")
|
||||
{
|
||||
NavMeshTool* tool = dynamic_cast<NavMeshTool*>(Sim::findObject(toolName));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue