summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorNyx (Neal Orman) <nyx@lindenlab.com>2012-07-17 14:34:35 -0400
committerNyx (Neal Orman) <nyx@lindenlab.com>2012-07-17 14:34:35 -0400
commitd2801da16f9ce6addf6d34b3532a574e24f5d9be (patch)
treecbea6d7a7241b9c466eb4569f1ade1caa8a222bc /indra
parent00b58ad8441ab0f97801d33716161e9cfd828b2e (diff)
SH-3258 WIP revert to server-generated textures
After exiting appearance mode, next server-generated appearance message should over-ride the locally-generated textures.
Diffstat (limited to 'indra')
-rwxr-xr-xindra/newview/llvoavatar.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 236cc1b089..d953a4b99e 100755
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -4581,6 +4581,7 @@ void LLVOAvatar::updateTextures()
if (isIndexBakedTexture((ETextureIndex)texture_index)
&& imagep->getID() != IMG_DEFAULT_AVATAR
&& imagep->getID() != IMG_INVISIBLE
+ && !LLAppearanceMgr::instance().useServerTextureBaking()
&& !imagep->getTargetHost().isOk())
{
LL_WARNS_ONCE("Texture") << "LLVOAvatar::updateTextures No host for texture "
@@ -7363,7 +7364,6 @@ void LLVOAvatar::processAvatarAppearance( LLMessageSystem* mesgsys )
}
setCompositeUpdatesEnabled( FALSE );
- mMeshTexturesDirty = TRUE;
gPipeline.markGLRebuild(this);
// parse visual params
@@ -7475,6 +7475,13 @@ void LLVOAvatar::processAvatarAppearance( LLMessageSystem* mesgsys )
// If all of the avatars are completely baked, release the global image caches to conserve memory.
LLVOAvatar::cullAvatarsByPixelArea();
+ if (isSelf() && LLAppearanceMgr::instance().useServerTextureBaking())
+ {
+ mUseLocalAppearance = false;
+ }
+
+ updateMeshTextures();
+
// llinfos << "processAvatarAppearance end " << mID << llendl;
}