From 399d0da9ef5802e85894e8d7e6e52e893653e24c Mon Sep 17 00:00:00 2001 From: prep Date: Fri, 17 Feb 2012 11:01:48 -0500 Subject: Path-317: debug option to enable vbo rendering of navmeshes --- indra/newview/app_settings/settings.xml | 12 ++++++++++++ indra/newview/llfloaterpathfindingconsole.cpp | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'indra/newview') diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 631e45d0ec..331ae02223 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -13494,5 +13494,17 @@ Value 6 + EnableVBOForNavMeshVisualization + + Comment + Enable the use of VBOs for navmesh visualization. + Persist + 1 + Type + Boolean + Value + 0 + + diff --git a/indra/newview/llfloaterpathfindingconsole.cpp b/indra/newview/llfloaterpathfindingconsole.cpp index c54f6a1ffe..5db052e448 100644 --- a/indra/newview/llfloaterpathfindingconsole.cpp +++ b/indra/newview/llfloaterpathfindingconsole.cpp @@ -397,7 +397,7 @@ void LLFloaterPathfindingConsole::setHasNavMeshReceived() --mNavMeshCnt; if ( mNavMeshCnt == 0 ) { - LLPathingLib::getInstance()->stitchNavMeshes(); + LLPathingLib::getInstance()->stitchNavMeshes( gSavedSettings.getBOOL("EnableVBOForNavMeshVisualization") ); } } -- cgit v1.2.3