summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorDon Kjer <don@lindenlab.com>2012-10-04 03:13:14 +0000
committerDon Kjer <don@lindenlab.com>2012-10-04 03:13:14 +0000
commit6d613b61d76c1909021983901920b6b1dc2c80f4 (patch)
treeade650a2b4b5aa37a549fc90c106f128f7095cc6 /indra/newview
parentc9ab9590aa1d44ea139b16e7ffcb1461d928bdd5 (diff)
parent13d6a9920d06bd718b632c0980f8340909b8187c (diff)
Automated merge
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/llviewerwearable.cpp4
-rwxr-xr-xindra/newview/llvoavatarself.cpp7
2 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llviewerwearable.cpp b/indra/newview/llviewerwearable.cpp
index f3d9b2c678..1200f65b6e 100755
--- a/indra/newview/llviewerwearable.cpp
+++ b/indra/newview/llviewerwearable.cpp
@@ -476,6 +476,10 @@ void LLViewerWearable::setItemID(const LLUUID& item_id)
void LLViewerWearable::revertValues()
{
+ if (isAgentAvatarValid() && gAgentAvatarp->isUsingServerBakes() && !gAgentAvatarp->isUsingLocalAppearance())
+ {
+ return;
+ }
LLWearable::revertValues();
diff --git a/indra/newview/llvoavatarself.cpp b/indra/newview/llvoavatarself.cpp
index 7ca40a8752..a29ef2f3ad 100755
--- a/indra/newview/llvoavatarself.cpp
+++ b/indra/newview/llvoavatarself.cpp
@@ -668,6 +668,13 @@ BOOL LLVOAvatarSelf::setParamWeight(const LLViewerVisualParam *param, F32 weight
return FALSE;
}
+ // FIXME DRANO - kludgy way to avoid overwriting avatar state from wearables.
+ if (isUsingServerBakes() && !isUsingLocalAppearance())
+ {
+ return FALSE;
+ }
+
+
if (param->getCrossWearable())
{
LLWearableType::EType type = (LLWearableType::EType)param->getWearableType();