Skip to content
Snippets Groups Projects
Commit 80be0559 authored by Nyx (Neal Orman)'s avatar Nyx (Neal Orman)
Browse files
parents d875b34d c0bba7e7
No related branches found
No related tags found
No related merge requests found
...@@ -196,6 +196,15 @@ void LLSidepanelAppearance::onVisibilityChange(const LLSD &new_visibility) ...@@ -196,6 +196,15 @@ void LLSidepanelAppearance::onVisibilityChange(const LLSD &new_visibility)
{ {
gAgentCamera.changeCameraToCustomizeAvatar(); gAgentCamera.changeCameraToCustomizeAvatar();
} }
if (mEditWearable && mEditWearable->getVisible())
{
LLWearable *wearable_ptr = mEditWearable->getWearable();
if (gAgentWearables.getWearableIndex(wearable_ptr) == LLAgentWearables::MAX_CLOTHING_PER_TYPE)
{
// we're no longer wearing the wearable we were last editing, switch back to outfit editor
showOutfitEditPanel();
}
}
} }
} }
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment