summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerdisplay.cpp
diff options
context:
space:
mode:
authorTodd Stinson <stinson@lindenlab.com>2012-01-04 16:16:40 -0800
committerTodd Stinson <stinson@lindenlab.com>2012-01-04 16:16:40 -0800
commit7cae41cd59c1ea1df4c0bfc40b6cc205044a05b3 (patch)
tree22d6106e7a739e2f7ce7602d602855db827cfaa5 /indra/newview/llviewerdisplay.cpp
parent10614ebd917f4dbb8a16e8a0473409c42f8d7608 (diff)
parent96e8d4876a022cb74dc58f77717ff672eb217bf6 (diff)
Pull and merge from https://bitbucket.org/stinson_linden/viewer-development-havokai.
Diffstat (limited to 'indra/newview/llviewerdisplay.cpp')
-rw-r--r--indra/newview/llviewerdisplay.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/indra/newview/llviewerdisplay.cpp b/indra/newview/llviewerdisplay.cpp
index d710076228..2b2dd5ef7c 100644
--- a/indra/newview/llviewerdisplay.cpp
+++ b/indra/newview/llviewerdisplay.cpp
@@ -885,6 +885,7 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
LLAppViewer::instance()->pingMainloopTimeout("Display:RenderGeom");
bool exclusiveDraw = false;
BOOL allowRenderables = false;
+ BOOL allowPathToBeDrawn = false;
if (!(LLAppViewer::instance()->logoutRequestSent() && LLAppViewer::instance()->hasSavedFinalSnapshot())
&& !gRestoreGL)
{
@@ -906,6 +907,11 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
{
allowRenderables = true;
}
+ //Determine if we should also draw a user supplied path on top of the scene
+ if ( pFloater && pFloater->getShowPathToggle() )
+ {
+ allowPathToBeDrawn = true;
+ }
//Navmesh
if ( LLPathingLib::getInstance()->getRenderNavMeshState() )
{
@@ -929,7 +935,12 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
LLPathingLib::getInstance()->renderNavMeshShapesVBO();
exclusiveDraw = true;
- }
+ }
+ //User designated path
+ if ( allowPathToBeDrawn )
+ {
+ LLPathingLib::getInstance()->renderPath();
+ }
}
}