summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerwearable.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2012-09-28 10:14:07 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2012-09-28 10:14:07 -0400
commit5c101330caf7eb4ee145c8b2f2921ff6b3a870ee (patch)
tree884939b79c8147c5b950f68b38bdcedf9a5a58e0 /indra/newview/llviewerwearable.cpp
parentf9a5cdba507096d16d834fe58c850b9f55ad9462 (diff)
parentec3f8f4a67bb1a47e634d05ba29ddc6c7bed38b8 (diff)
merge
Diffstat (limited to 'indra/newview/llviewerwearable.cpp')
-rwxr-xr-xindra/newview/llviewerwearable.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llviewerwearable.cpp b/indra/newview/llviewerwearable.cpp
index f6a03e708e..f3d9b2c678 100755
--- a/indra/newview/llviewerwearable.cpp
+++ b/indra/newview/llviewerwearable.cpp
@@ -320,8 +320,9 @@ void LLViewerWearable::writeToAvatar(LLAvatarAppearance *avatarp)
if (!viewer_avatar->isValid()) return;
- if (viewer_avatar->getRegion() &&
- (viewer_avatar->getRegion()->getCentralBakeVersion()>0) &&
+ // FIXME DRANO - kludgy way to avoid overwriting avatar state from wearables.
+ // Ideally would avoid calling this func in the first place.
+ if (viewer_avatar->isUsingServerBakes() &&
!viewer_avatar->isUsingLocalAppearance())
{
return;