From 9db2061e1db177f8e13e9c94b672b27bc325ec81 Mon Sep 17 00:00:00 2001 From: Todd Stinson Date: Mon, 4 Jun 2012 18:36:22 -0700 Subject: BUGFIX: Ensuring that the physics capsule is built for each character. --- indra/newview/llpathfindingcharacter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/indra/newview/llpathfindingcharacter.cpp b/indra/newview/llpathfindingcharacter.cpp index e3889522f3..42130d9fde 100644 --- a/indra/newview/llpathfindingcharacter.cpp +++ b/indra/newview/llpathfindingcharacter.cpp @@ -107,6 +107,10 @@ 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); + LLPathingLib::getInstance()->createPhysicsCapsuleRep( mLength, mRadius, mIsHorizontal, empty, getUUID() ); } #else // SERVER_SIDE_CHARACTER_SHAPE_ROLLOUT_COMPLETE llassert(pCharacterData.has(CHARACTER_HORIZONTAL_FIELD)); @@ -124,6 +128,5 @@ void LLPathfindingCharacter::parseCharacterData(const LLSD &pCharacterData) //Create the rep inside the pathing library LLVector3 empty(0,0,0); LLPathingLib::getInstance()->createPhysicsCapsuleRep( mLength, mRadius, mIsHorizontal, empty, getUUID() ); - #endif // SERVER_SIDE_CHARACTER_SHAPE_ROLLOUT_COMPLETE } -- cgit v1.2.3