summaryrefslogtreecommitdiff
path: root/indra/newview/llpathfindingcharacter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llpathfindingcharacter.cpp')
-rw-r--r--indra/newview/llpathfindingcharacter.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llpathfindingcharacter.cpp b/indra/newview/llpathfindingcharacter.cpp
index 0696783bf7..c7843b8fee 100644
--- a/indra/newview/llpathfindingcharacter.cpp
+++ b/indra/newview/llpathfindingcharacter.cpp
@@ -31,12 +31,16 @@
#include "llpathfindingobject.h"
#include "llsd.h"
+#include "llpathinglib.h"
#define CHARACTER_CPU_TIME_FIELD "cpu_time"
#define CHARACTER_HORIZONTAL_FIELD "horizontal"
#define CHARACTER_LENGTH_FIELD "length"
#define CHARACTER_RADIUS_FIELD "radius"
+//prep#
+#define SERVER_SIDE_CHARACTER_SHAPE_ROLLOUT_COMPLETE
+
//---------------------------------------------------------------------------
// LLPathfindingCharacter
//---------------------------------------------------------------------------
@@ -119,5 +123,11 @@ void LLPathfindingCharacter::parseCharacterData(const LLSD &pCharacterData)
llassert(pCharacterData.has(CHARACTER_RADIUS_FIELD));
llassert(pCharacterData.get(CHARACTER_RADIUS_FIELD).isReal());
mRadius = pCharacterData.get(CHARACTER_RADIUS_FIELD).asReal();
+
+ //Create the rep inside the pathing library
+ LLVector3 empty(0,0,0);
+ const LLUUID id = getUUID();
+ LLPathingLib::getInstance()->createPhysicsCapsuleRep( mLength, mRadius, mIsHorizontal, empty, id );
+
#endif // SERVER_SIDE_CHARACTER_SHAPE_ROLLOUT_COMPLETE
}