Skip to content
Snippets Groups Projects
Commit 1132b330 authored by andreykproductengine's avatar andreykproductengine
Browse files

MAINT-1858 Fixed camera not looking at avatar if "Editing Appearance" while moving

parent 3c637e49
No related branches found
No related tags found
No related merge requests found
......@@ -1537,6 +1537,11 @@ LLVector3d LLAgentCamera::calcFocusPositionTargetGlobal()
}
else if (mCameraMode == CAMERA_MODE_CUSTOMIZE_AVATAR)
{
LLVector3 focus_target = isAgentAvatarValid()
? gAgentAvatarp->mHeadp->getWorldPosition()
: gAgent.getPositionAgent();
LLVector3d focus_target_global = gAgent.getPosGlobalFromAgent(focus_target);
mFocusTargetGlobal = focus_target_global;
return mFocusTargetGlobal;
}
else if (!mFocusOnAvatar)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment