diff options
author | prep <prep@lindenlab.com> | 2012-01-04 13:12:46 -0500 |
---|---|---|
committer | prep <prep@lindenlab.com> | 2012-01-04 13:12:46 -0500 |
commit | 06bfbf61e16ffec0e54f131a7f3b37c475f10cd9 (patch) | |
tree | e0eb2de9ecbbea0d2eda3c698e7f403d834632b5 | |
parent | d2609e7dda6c52b9f17e0fe5657514d2e6be18a7 (diff) |
Path-177. Updated to newest version of LLPathingLibrary
-rw-r--r-- | autobuild.xml | 4 | ||||
-rw-r--r-- | indra/newview/llfloaterpathfindingconsole.cpp | 1 | ||||
-rw-r--r-- | indra/newview/llfloaterpathfindingconsole.h | 4 | ||||
-rw-r--r-- | indra/newview/llviewerdisplay.cpp | 13 |
4 files changed, 17 insertions, 5 deletions
diff --git a/autobuild.xml b/autobuild.xml index ba729bdb8e..a74003ecfa 100644 --- a/autobuild.xml +++ b/autobuild.xml @@ -1822,9 +1822,9 @@ <key>archive</key> <map> <key>hash</key> - <string>b41a678cbc8edb072d5f430147532b58</string> + <string>124f9ecb149fd240467de43a4984122d</string> <key>url</key> - <string>http://s3-proxy.lindenlab.com/private-builds-secondlife-com/hg/repo/stinson_llpathinglibrary/rev/246855/arch/CYGWIN/installer/llpathinglibrary-0.1-windows-20111219.tar.bz2</string> + <string>http://s3-proxy.lindenlab.com/private-builds-secondlife-com/hg/repo/stinson_llpathinglibrary/rev/247166/arch/CYGWIN/installer/llpathinglibrary-0.1-windows-20120104.tar.bz2</string> </map> <key>name</key> <string>windows</string> diff --git a/indra/newview/llfloaterpathfindingconsole.cpp b/indra/newview/llfloaterpathfindingconsole.cpp index f66930da79..efa3a592e0 100644 --- a/indra/newview/llfloaterpathfindingconsole.cpp +++ b/indra/newview/llfloaterpathfindingconsole.cpp @@ -32,7 +32,6 @@ #include "llsd.h"
#include "llagent.h"
#include "llbutton.h"
-#include "llcheckboxctrl.h"
#include "llradiogroup.h"
#include "llsliderctrl.h"
#include "lllineeditor.h"
diff --git a/indra/newview/llfloaterpathfindingconsole.h b/indra/newview/llfloaterpathfindingconsole.h index 7a9328da57..9f9774b66b 100644 --- a/indra/newview/llfloaterpathfindingconsole.h +++ b/indra/newview/llfloaterpathfindingconsole.h @@ -31,9 +31,9 @@ #include "llfloater.h"
#include "llnavmeshstation.h"
#include "llpathinglib.h"
+#include "llcheckboxctrl.h"
class LLSD;
-class LLCheckBoxCtrl;
class LLRadioGroup;
class LLSliderCtrl;
class LLLineEditor;
@@ -95,6 +95,8 @@ public: F32 getTerrainMaterialD() const;
void setTerrainMaterialD(F32 pTerrainMaterial);
+ BOOL getShowPathToggle() const {return mShowPathCheckBox->get(); }
+
protected:
private:
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();
+ }
}
}
|