MAINT-7048 FIXED Changes in wearables are not saved properly

Mnikolenko Productengine 2017-01-11 15:04:50 +02:00
parent 2f40972dd8
commit 5b2ddae999
1 changed files with 1 additions and 5 deletions

View File

@ -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)
{