summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2017-01-11 15:04:50 +0200
committerMnikolenko Productengine <mnikolenko@productengine.com>2017-01-11 15:04:50 +0200
commit5b2ddae9994e251502b02e81f9ef24a7024340be (patch)
tree101696a785e9de8b4bb2fd714611f6680d98bab7
parent2f40972dd84560de26a9d2dcaaff377e15c1de37 (diff)
MAINT-7048 FIXED Changes in wearables are not saved properly
-rw-r--r--indra/newview/llsidepanelappearance.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/indra/newview/llsidepanelappearance.cpp b/indra/newview/llsidepanelappearance.cpp
index 03fa2e2080..3e95811bb8 100644
--- a/indra/newview/llsidepanelappearance.cpp
+++ b/indra/newview/llsidepanelappearance.cpp
@@ -394,11 +394,6 @@ void LLSidepanelAppearance::toggleWearableEditPanel(BOOL visible, LLViewerWearab
return;
}
- if(!visible)
- {
- mEditWearable->setWearable(NULL);
- }
-
// If we're just switching between outfit and wearable editing or updating item,
// don't end customization and don't switch camera
// Don't end customization and don't switch camera without visibility change
@@ -426,6 +421,7 @@ void LLSidepanelAppearance::toggleWearableEditPanel(BOOL visible, LLViewerWearab
{
// Save changes if closing.
mEditWearable->saveChanges();
+ mEditWearable->setWearable(NULL);
LLAppearanceMgr::getInstance()->updateIsDirty();
if (change_state)
{