summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r--indra/newview/pipeline.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index f797822d41..97b69370c9 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -104,8 +104,7 @@
#include "lltoolpie.h"
#include "llcurl.h"
#include "llnotifications.h"
-//prep#
-#include "LLPathingLib.h"
+#include "llpathinglib.h"
void check_stack_depth(S32 stack_depth)
{
@@ -3787,9 +3786,16 @@ void LLPipeline::renderGeom(LLCamera& camera, BOOL forceVBOUpdate)
LLVertexBuffer::unbind();
//prep#
- if ( LLPathingLib::getInstance() )
- {
- LLPathingLib::getInstance()->renderNavMesh();
+ if ( LLPathingLib::getInstance() )
+ {
+ if ( LLPathingLib::getInstance()->getRenderNavMeshState() )
+ {
+ LLPathingLib::getInstance()->renderNavMesh();
+ }
+ if ( LLPathingLib::getInstance()->getRenderNavMeshandShapesState() )
+ {
+ LLPathingLib::getInstance()->renderNavMeshandShapes();
+ }
}
if (!LLPipeline::sReflectionRender && !LLPipeline::sRenderDeferred)