summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterpathfindingconsole.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llfloaterpathfindingconsole.cpp')
-rw-r--r--indra/newview/llfloaterpathfindingconsole.cpp31
1 files changed, 30 insertions, 1 deletions
diff --git a/indra/newview/llfloaterpathfindingconsole.cpp b/indra/newview/llfloaterpathfindingconsole.cpp
index 46017ccdfc..5a30da355e 100644
--- a/indra/newview/llfloaterpathfindingconsole.cpp
+++ b/indra/newview/llfloaterpathfindingconsole.cpp
@@ -430,7 +430,36 @@ F32 LLFloaterPathfindingConsole::getTerrainMaterialD() const
{
return mTerrainMaterialD->getValue().asReal();
}
-BOOL LLFloaterPathfindingConsole::allowAllRenderables()
+
+BOOL LLFloaterPathfindingConsole::allowAllRenderables() const
{
return getRegionOverlayDisplay() == kRenderOverlayOnAllRenderableGeometry ? true : false;
+}
+
+void LLFloaterPathfindingConsole::providePathingData( const LLVector3& point1, const LLVector3& point2 )
+{
+ switch (getPathSelectionState())
+ {
+ case kPathSelectNone :
+ llwarns << "not yet been implemented to toggle '"
+ << mPathSelectionRadioGroup->getName() << "' to PathSelectNone"
+ << llendl;
+ break;
+
+ case kPathSelectStartPoint :
+ mPathData.mStartPointA = point1;
+ mPathData.mEndPointA = point2;
+ break;
+
+ case kPathSelectEndPoint :
+ mPathData.mStartPointB = point1;
+ mPathData.mEndPointB = point2;
+ //prep#TODO# possibly consider an alternate behavior - perhaps add a "path" button to submit the data.
+ LLPathingLib::getInstance()->generatePath( mPathData );
+ break;
+
+ default :
+ llassert(0);
+ break;
+ }
} \ No newline at end of file