Enable gl sync fence. Missed a vertexbuffer flush. moved LLMultiFloater out of llfloater.(h|cpp) and into its own header and source file, matching v2.
This commit is contained in:
@@ -91,15 +91,14 @@ void LLMorphView::initialize()
|
||||
mCameraYaw = 0.f;
|
||||
mCameraDist = -1.f;
|
||||
|
||||
LLVOAvatar *avatarp = gAgentAvatarp;
|
||||
if (!avatarp || avatarp->isDead())
|
||||
if (!isAgentAvatarValid() || gAgentAvatarp->isDead())
|
||||
{
|
||||
gAgentCamera.changeCameraToDefault();
|
||||
return;
|
||||
}
|
||||
|
||||
avatarp->stopMotion( ANIM_AGENT_BODY_NOISE );
|
||||
avatarp->mSpecialRenderMode = 3;
|
||||
gAgentAvatarp->stopMotion( ANIM_AGENT_BODY_NOISE );
|
||||
gAgentAvatarp->mSpecialRenderMode = 3;
|
||||
|
||||
// set up camera for close look at avatar
|
||||
mOldCameraNearClip = LLViewerCamera::getInstance()->getNear();
|
||||
@@ -113,11 +112,10 @@ void LLMorphView::shutdown()
|
||||
{
|
||||
LLVOAvatar::onCustomizeEnd();
|
||||
|
||||
LLVOAvatar *avatarp = gAgentAvatarp;
|
||||
if(avatarp && !avatarp->isDead())
|
||||
if (isAgentAvatarValid())
|
||||
{
|
||||
avatarp->startMotion( ANIM_AGENT_BODY_NOISE );
|
||||
avatarp->mSpecialRenderMode = 0;
|
||||
gAgentAvatarp->startMotion( ANIM_AGENT_BODY_NOISE );
|
||||
gAgentAvatarp->mSpecialRenderMode = 0;
|
||||
// reset camera
|
||||
LLViewerCamera::getInstance()->setNear(mOldCameraNearClip);
|
||||
}
|
||||
@@ -167,14 +165,10 @@ void LLMorphView::updateCamera()
|
||||
if (!mCameraTargetJoint)
|
||||
{
|
||||
setCameraTargetJoint(gAgentAvatarp->getJoint("mHead"));
|
||||
}
|
||||
|
||||
LLVOAvatar* avatar = gAgentAvatarp;
|
||||
if( !avatar )
|
||||
{
|
||||
return;
|
||||
}
|
||||
LLJoint* root_joint = avatar->getRootJoint();
|
||||
}
|
||||
if (!isAgentAvatarValid()) return;
|
||||
|
||||
LLJoint* root_joint = gAgentAvatarp->getRootJoint();
|
||||
if( !root_joint )
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user