From 2d011abb6b09e35ab64b6133fbed8d617d2add88 Mon Sep 17 00:00:00 2001 From: Todd Stinson Date: Thu, 19 Apr 2012 12:32:17 -0700 Subject: Cleaning up the navmesh colors a bit. --- indra/newview/app_settings/settings.xml | 37 ++++++++++----------------- indra/newview/llfloaterpathfindingconsole.cpp | 14 ++-------- indra/newview/llfloaterpathfindingconsole.h | 2 -- indra/newview/pipeline.cpp | 2 +- 4 files changed, 16 insertions(+), 39 deletions(-) (limited to 'indra') diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index ab119e37fa..d702ae4766 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -13526,24 +13526,13 @@ U32 Value 99 - - EnableVBOForNavMeshVisualization - - Comment - Enable the use of VBOs for navmesh visualization. - Persist - 1 - Type - Boolean - Value - 1 PathfindingNavMeshClear Comment Background color Persist - 1 + 0 Type Color4 Value @@ -13559,7 +13548,7 @@ Comment Walkable color Persist - 1 + 0 Type Color4 Value @@ -13575,7 +13564,7 @@ Comment Obstacle color Persist - 1 + 0 Type Color4 Value @@ -13591,7 +13580,7 @@ Comment Material volume color Persist - 1 + 0 Type Color4 Value @@ -13607,7 +13596,7 @@ Comment Exclusion volume color Persist - 1 + 0 Type Color4 Value @@ -13623,7 +13612,7 @@ Comment Connected edge color Persist - 1 + 0 Type Color4 Value @@ -13639,7 +13628,7 @@ Comment Boundary edge color Persist - 1 + 0 Type Color4 Value @@ -13655,7 +13644,7 @@ Comment Least walkable heat map color Persist - 1 + 0 Type Color4 Value @@ -13671,7 +13660,7 @@ Comment Most walkable heat map color Persist - 1 + 0 Type Color4 Value @@ -13687,7 +13676,7 @@ Comment Nav mesh color? Persist - 1 + 0 Type Color4 Value @@ -13703,7 +13692,7 @@ Comment yay! Persist - 1 + 0 Type Color4 Value @@ -13719,7 +13708,7 @@ Comment yay! Persist - 1 + 0 Type Color4 Value @@ -13735,7 +13724,7 @@ Comment yay! Persist - 1 + 0 Type Color4 Value diff --git a/indra/newview/llfloaterpathfindingconsole.cpp b/indra/newview/llfloaterpathfindingconsole.cpp index 962ff74459..1e10e346a8 100644 --- a/indra/newview/llfloaterpathfindingconsole.cpp +++ b/indra/newview/llfloaterpathfindingconsole.cpp @@ -395,11 +395,6 @@ void LLFloaterPathfindingConsole::setRenderHeatmapType(LLPathingLib::LLPLCharact mShowNavMeshWalkabilityComboBox->setValue(comboBoxValue); } -const LLColor4 &LLFloaterPathfindingConsole::getNavMeshBackgroundColor() const -{ - return mNavMeshColors.mNavMeshClear; -} - LLFloaterPathfindingConsole::LLFloaterPathfindingConsole(const LLSD& pSeed) : LLFloater(pSeed), mSelfHandle(), @@ -1003,11 +998,9 @@ void LLFloaterPathfindingConsole::fillInColorsForNavMeshVisualization() in = gSavedSettings.getColor4("PathfindingBoundaryEdge"); mNavMeshColors.mBoundaryEdge= LLColor4U(in); - in = gSavedSettings.getColor4("PathfindingHeatColorBase"); - mNavMeshColors.mHeatColorBase= LLVector4(in.mV); + mNavMeshColors.mHeatColorBase = gSavedSettings.getColor4("PathfindingHeatColorBase"); - in = gSavedSettings.getColor4("PathfindingHeatColorMax"); - mNavMeshColors.mHeatColorMax= LLVector4( in.mV ); + mNavMeshColors.mHeatColorMax = gSavedSettings.getColor4("PathfindingHeatColorMax"); in = gSavedSettings.getColor4("PathfindingFaceColor"); mNavMeshColors.mFaceColor= LLColor4U(in); @@ -1021,8 +1014,5 @@ void LLFloaterPathfindingConsole::fillInColorsForNavMeshVisualization() in = gSavedSettings.getColor4("PathfindingTestPathColor"); mNavMeshColors.mTestPath= LLColor4U(in); - in = gSavedSettings.getColor4("PathfindingNavMeshClear"); - mNavMeshColors.mNavMeshClear= LLColor4(in); - LLPathingLib::getInstance()->setNavMeshColors(mNavMeshColors); } diff --git a/indra/newview/llfloaterpathfindingconsole.h b/indra/newview/llfloaterpathfindingconsole.h index 47c5a9c80f..d81401c7ec 100644 --- a/indra/newview/llfloaterpathfindingconsole.h +++ b/indra/newview/llfloaterpathfindingconsole.h @@ -88,8 +88,6 @@ public: LLPathingLib::LLPLCharacterType getRenderHeatmapType() const; void setRenderHeatmapType(LLPathingLib::LLPLCharacterType pRenderHeatmapType); - const LLColor4 &getNavMeshBackgroundColor() const; - protected: private: diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 02ef301fd0..ccc65fe412 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -4353,7 +4353,7 @@ void LLPipeline::renderDebug() if ( !pathfindingConsole->isRenderWorld() ) { - const LLColor4 &clearColor = pathfindingConsole->getNavMeshBackgroundColor(); + const LLColor4 clearColor = gSavedSettings.getColor4("PathfindingNavMeshClear"); gGL.setColorMask(true, true); glClearColor(clearColor.mV[0],clearColor.mV[1],clearColor.mV[2],0); glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); -- cgit v1.2.3