diff options
| author | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2013-08-22 13:32:56 +0300 | 
|---|---|---|
| committer | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2013-08-22 13:32:56 +0300 | 
| commit | f2b5bfc60509c3ee69d9376b7abf0e5b347e474d (patch) | |
| tree | 6d64a0159343e7a0b313b4cbdf0331c7ebca3328 | |
| parent | 99fb8b6725996382d05b8f90ebfd4ec8707b308c (diff) | |
MAINT-2904 FIXED (Users of "LittleSight" viewer are invisible but can listen to spatial chat)
| -rwxr-xr-x | indra/newview/llagent.cpp | 12 | 
1 files changed, 10 insertions, 2 deletions
| diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 3b83811c78..4247c84a3a 100755 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -1090,11 +1090,19 @@ const LLVector3d &LLAgent::getPositionGlobal() const  //-----------------------------------------------------------------------------  const LLVector3 &LLAgent::getPositionAgent()  { -	if (isAgentAvatarValid() && !gAgentAvatarp->mDrawable.isNull()) +	if (isAgentAvatarValid())  	{ -		mFrameAgent.setOrigin(gAgentAvatarp->getRenderPosition());	 +		if(gAgentAvatarp->mDrawable.isNull()) +		{ +			mFrameAgent.setOrigin(gAgentAvatarp->getPositionAgent()); +		} +		else +		{ +			mFrameAgent.setOrigin(gAgentAvatarp->getRenderPosition()); +		}  	} +  	return mFrameAgent.getOrigin();  } | 
