diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2010-04-26 17:45:32 -0400 | 
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2010-04-26 17:45:32 -0400 | 
| commit | 2927ae2fa4058f249b8ff1e6bd7ed87b02917d57 (patch) | |
| tree | fe826fdb426c66ac31bb3c278da2d399eab1f77e | |
| parent | 063a7a531a66ad1d83e644217a9488682d94b231 (diff) | |
Improved default animations - work in progress
| -rw-r--r-- | indra/llcharacter/llmotioncontroller.cpp | 10 | ||||
| -rw-r--r-- | indra/llcharacter/llmotioncontroller.h | 1 | ||||
| -rw-r--r-- | indra/newview/llvoavatar.cpp | 10 | ||||
| -rw-r--r-- | indra/newview/llvoavatarself.cpp | 4 | 
4 files changed, 16 insertions, 9 deletions
| diff --git a/indra/llcharacter/llmotioncontroller.cpp b/indra/llcharacter/llmotioncontroller.cpp index 318fac847b..5070f83ed6 100644 --- a/indra/llcharacter/llmotioncontroller.cpp +++ b/indra/llcharacter/llmotioncontroller.cpp @@ -143,7 +143,8 @@ LLMotionController::LLMotionController()  	  mPauseTime(0.f),  	  mTimeStep(0.f),  	  mTimeStepCount(0), -	  mLastInterp(0.f) +	  mLastInterp(0.f), +	  mIsSelf(FALSE)  {  } @@ -806,7 +807,10 @@ void LLMotionController::updateLoadingMotions()  //-----------------------------------------------------------------------------  void LLMotionController::updateMotions(bool force_update)  { -	dumpMotions(); +	if (mIsSelf) +	{ +		dumpMotions(); +	}  	BOOL use_quantum = (mTimeStep != 0.f); @@ -1041,10 +1045,10 @@ LLMotion* LLMotionController::findMotion(const LLUUID& id) const  //-----------------------------------------------------------------------------  void LLMotionController::dumpMotions()  { +	llinfos << "=====================================" << llendl;  	for (motion_map_t::iterator iter = mAllMotions.begin();  		 iter != mAllMotions.end(); iter++)  	{ -		llinfos << "=====================================" << llendl;  		LLUUID id = iter->first;  		std::string state_string;  		LLMotion *motion = iter->second; diff --git a/indra/llcharacter/llmotioncontroller.h b/indra/llcharacter/llmotioncontroller.h index 83dc2d487a..30ab0cbdc9 100644 --- a/indra/llcharacter/llmotioncontroller.h +++ b/indra/llcharacter/llmotioncontroller.h @@ -92,6 +92,7 @@ class LLMotionController  public:  	typedef std::list<LLMotion*> motion_list_t;  	typedef std::set<LLMotion*> motion_set_t; +	BOOL mIsSelf;  public:  	// Constructor diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp index 02baaeae41..62823648b7 100644 --- a/indra/newview/llvoavatar.cpp +++ b/indra/newview/llvoavatar.cpp @@ -2259,11 +2259,6 @@ BOOL LLVOAvatar::idleUpdate(LLAgent &agent, LLWorld &world, const F64 &time)  	idleUpdateRenderCost();  	idleUpdateTractorBeam(); -	if (isSelf()) -	{ -		dumpAnimationState(this); -	} -	  	return TRUE;  } @@ -3066,6 +3061,11 @@ BOOL LLVOAvatar::updateCharacter(LLAgent &agent)  		}  	} +	if (isSelf()) +	{ +		dumpAnimationState(this); +	} +  	if (gNoRender)  	{  		// Hack if we're running drones... diff --git a/indra/newview/llvoavatarself.cpp b/indra/newview/llvoavatarself.cpp index 7473adda1f..9bed75c0a6 100644 --- a/indra/newview/llvoavatarself.cpp +++ b/indra/newview/llvoavatarself.cpp @@ -143,7 +143,9 @@ LLVOAvatarSelf::LLVOAvatarSelf(const LLUUID& id,  	mRegionCrossingCount(0)  {  	gAgentWearables.setAvatarObject(this); -	 + +	mMotionController.mIsSelf = TRUE; +  	lldebugs << "Marking avatar as self " << id << llendl;  } | 
