MAINT-2904 FIXED (Users of "LittleSight" viewer are invisible but can listen to spatial chat)
parent
99fb8b6725
commit
f2b5bfc605
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue