MAINT-1114 crash at LLVOAvatar updateGeometry()

andreykproductengine 2017-10-27 21:29:15 +03:00
parent d7732280a9
commit 5a7b36d506
1 changed files with 10 additions and 2 deletions

View File

@ -162,8 +162,16 @@ void LLVisualParamHint::preRender(BOOL clear_depth)
// Calling LLCharacter version, as we don't want position/height changes to cause the avatar to jump
// up and down when we're doing preview renders. -Nyx
gAgentAvatarp->LLCharacter::updateVisualParams();
gAgentAvatarp->updateGeometry(gAgentAvatarp->mDrawable);
gAgentAvatarp->updateLOD();
if (gAgentAvatarp->mDrawable.notNull())
{
gAgentAvatarp->updateGeometry(gAgentAvatarp->mDrawable);
gAgentAvatarp->updateLOD();
}
else
{
LL_WARNS() << "Attempting to update avatar's geometry, but drawable doesn't exist yet" << LL_ENDL;
}
LLViewerDynamicTexture::preRender(clear_depth);
}