diff options
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llcharacter/llbvhloader.h | 1 | ||||
| -rw-r--r-- | indra/llcharacter/llkeyframewalkmotion.cpp | 12 | ||||
| -rw-r--r-- | indra/llcharacter/llstatemachine.cpp | 2 | ||||
| -rw-r--r-- | indra/llinventory/llnotecard.cpp | 4 | ||||
| -rw-r--r-- | indra/llprimitive/llmaterialtable.cpp | 3 | ||||
| -rw-r--r-- | indra/llprimitive/llmaterialtable.h | 83 | ||||
| -rw-r--r-- | indra/newview/tests/llviewerhelputil_test.cpp | 2 | 
7 files changed, 61 insertions, 46 deletions
diff --git a/indra/llcharacter/llbvhloader.h b/indra/llcharacter/llbvhloader.h index 85ab035e61..38617bd6d4 100644 --- a/indra/llcharacter/llbvhloader.h +++ b/indra/llcharacter/llbvhloader.h @@ -166,6 +166,7 @@ public:  	Translation()  	{  		mIgnore = FALSE; +		mIgnorePositions = FALSE;  		mRelativePositionKey = FALSE;  		mRelativeRotationKey = FALSE;  		mPriorityModifier = 0; diff --git a/indra/llcharacter/llkeyframewalkmotion.cpp b/indra/llcharacter/llkeyframewalkmotion.cpp index b5817e5bde..461309bee9 100644 --- a/indra/llcharacter/llkeyframewalkmotion.cpp +++ b/indra/llcharacter/llkeyframewalkmotion.cpp @@ -58,11 +58,15 @@ const F32 MAX_ROLL = 0.6f;  // LLKeyframeWalkMotion()  // Class Constructor  //----------------------------------------------------------------------------- -LLKeyframeWalkMotion::LLKeyframeWalkMotion(const LLUUID &id) : LLKeyframeMotion(id) +LLKeyframeWalkMotion::LLKeyframeWalkMotion(const LLUUID &id) +  : LLKeyframeMotion(id), +     +    mCharacter(NULL), +    mCyclePhase(0.0f), +    mRealTimeLast(0.0f), +    mAdjTimeLast(0.0f), +    mDownFoot(0)  { -	mRealTimeLast = 0.0f; -	mAdjTimeLast = 0.0f; -	mCharacter = NULL;  } diff --git a/indra/llcharacter/llstatemachine.cpp b/indra/llcharacter/llstatemachine.cpp index 73c6951211..e6fa4d7985 100644 --- a/indra/llcharacter/llstatemachine.cpp +++ b/indra/llcharacter/llstatemachine.cpp @@ -54,6 +54,7 @@ bool	operator!=(const LLUniqueID &a, const LLUniqueID &b)  //-----------------------------------------------------------------------------  LLStateDiagram::LLStateDiagram()  { +	mDefaultState = NULL;  	mUseDefaultState = FALSE;  } @@ -305,6 +306,7 @@ LLStateMachine::LLStateMachine()  	// we haven't received a starting state yet  	mCurrentState = NULL;  	mLastState = NULL; +	mLastTransition = NULL;  	mStateDiagram = NULL;  } diff --git a/indra/llinventory/llnotecard.cpp b/indra/llinventory/llnotecard.cpp index 9e7e043761..f6e41eecb4 100644 --- a/indra/llinventory/llnotecard.cpp +++ b/indra/llinventory/llnotecard.cpp @@ -35,7 +35,9 @@  #include "llstreamtools.h"  LLNotecard::LLNotecard(S32 max_text) -: mMaxText(max_text) +	: mMaxText(max_text), +	  mVersion(0), +	  mEmbeddedVersion(0)  {  } diff --git a/indra/llprimitive/llmaterialtable.cpp b/indra/llprimitive/llmaterialtable.cpp index 18787c47c5..774a58c8ac 100644 --- a/indra/llprimitive/llmaterialtable.cpp +++ b/indra/llprimitive/llmaterialtable.cpp @@ -92,6 +92,9 @@ F32 const LLMaterialTable::DEFAULT_FRICTION = 0.5f;  F32 const LLMaterialTable::DEFAULT_RESTITUTION = 0.4f;  LLMaterialTable::LLMaterialTable() +	: mCollisionSoundMatrix(NULL), +	  mSlidingSoundMatrix(NULL), +	  mRollingSoundMatrix(NULL)  {  } diff --git a/indra/llprimitive/llmaterialtable.h b/indra/llprimitive/llmaterialtable.h index 2c0b046fa7..77f29a8e06 100644 --- a/indra/llprimitive/llmaterialtable.h +++ b/indra/llprimitive/llmaterialtable.h @@ -38,6 +38,8 @@  #include <list> +class LLMaterialInfo; +  const U32 LLMATERIAL_INFO_NAME_LENGTH = 256;  // We've moved toward more reasonable mass values for the Havok4 engine. @@ -64,45 +66,6 @@ const F32 LEGACY_DEFAULT_OBJECT_DENSITY = 10.0f;  const F32 DEFAULT_AVATAR_DENSITY = 445.3f;		// was 444.24f; -class LLMaterialInfo -{ -public: -	U8		    mMCode; -	std::string	mName; -	LLUUID		mDefaultTextureID; -	LLUUID		mShatterSoundID; -	F32         mDensity;           // kg/m^3 -	F32         mFriction; -	F32         mRestitution; - -	// damage and energy constants -	F32			mHPModifier;		// modifier on mass based HP total -	F32			mDamageModifier;	// modifier on KE based damage -	F32			mEPModifier;		// modifier on mass based EP total - -	LLMaterialInfo(U8 mcode, const std::string& name, const LLUUID &uuid) -	{ -		init(mcode,name,uuid); -	}; - -	void init(U8 mcode, const std::string& name, const LLUUID &uuid) -	{ -		mDensity = 1000.f;             // default to 1000.0 (water) -		mHPModifier = 1.f; -		mDamageModifier = 1.f; -		mEPModifier = 1.f; - -		mMCode = mcode; -		mName = name; -		mDefaultTextureID = uuid;		 -	}; - -	~LLMaterialInfo() -	{ -	}; - -}; -  class LLMaterialTable  {  public: @@ -185,5 +148,47 @@ public:  	static LLMaterialTable basic;  }; + +class LLMaterialInfo +{ +public: +	U8		    mMCode; +	std::string	mName; +	LLUUID		mDefaultTextureID; +	LLUUID		mShatterSoundID; +	F32         mDensity;           // kg/m^3 +	F32         mFriction; +	F32         mRestitution; + +	// damage and energy constants +	F32			mHPModifier;		// modifier on mass based HP total +	F32			mDamageModifier;	// modifier on KE based damage +	F32			mEPModifier;		// modifier on mass based EP total + +	LLMaterialInfo(U8 mcode, const std::string& name, const LLUUID &uuid) +	{ +		init(mcode,name,uuid); +	}; + +	void init(U8 mcode, const std::string& name, const LLUUID &uuid) +	{ +		mDensity = 1000.f;             // default to 1000.0 (water) +		mFriction = LLMaterialTable::DEFAULT_FRICTION; +		mRestitution = LLMaterialTable::DEFAULT_RESTITUTION; +		mHPModifier = 1.f; +		mDamageModifier = 1.f; +		mEPModifier = 1.f; + +		mMCode = mcode; +		mName = name; +		mDefaultTextureID = uuid;		 +	}; + +	~LLMaterialInfo() +	{ +	}; + +}; +  #endif diff --git a/indra/newview/tests/llviewerhelputil_test.cpp b/indra/newview/tests/llviewerhelputil_test.cpp index 297d98ad8d..dd61ac6ae5 100644 --- a/indra/newview/tests/llviewerhelputil_test.cpp +++ b/indra/newview/tests/llviewerhelputil_test.cpp @@ -87,8 +87,6 @@ public:  	__attribute__ ((noinline))  #endif  	BOOL isGodlike() const { return FALSE; } -private: -	int dummy;  };  LLAgent gAgent;  | 
