Browse Source

render links in editor

Render the navmesh links in the guiNavEditor not the offmeshconnectiontool, this way they are always visible.
marauder2k7 1 month ago
parent
commit
a5e969a8fd

+ 4 - 1
Engine/source/navigation/guiNavEditorCtrl.cpp

@@ -285,8 +285,11 @@ void GuiNavEditorCtrl::renderScene(const RectI & updateRect)
       mTool->onRender3D();
 
    duDebugDrawTorque d;
-   if(!mMesh.isNull())
+   if (!mMesh.isNull())
+   {
       mMesh->renderLinks(d);
+      d.immediateRender();
+   }
 
    // Now draw all the 2d stuff!
    GFX->setClipRect(updateRect);

+ 1 - 1
Engine/source/navigation/navMeshTools/offMeshConnTool.cpp

@@ -146,7 +146,7 @@ void OffMeshConnectionTool::onRender3D()
       dd.end();
    }
 
-   mNavMesh->renderLinks(dd);
+   //mNavMesh->renderLinks(dd);
 
    dd.immediateRender();
 }