Right click edit on a wearable should take you right to that wearable's tab

This commit is contained in:
Lirusaito
2019-02-27 15:37:36 -05:00
parent 43806994eb
commit bf17e716e9

View File

@@ -237,7 +237,11 @@ void LLFloaterCustomize::editWearable(LLViewerWearable* wearable, bool disable_c
{
if(!wearable)
return;
LLFloaterCustomize::getInstance()->setCurrentWearableType(wearable->getType(), disable_camera_switch);
auto& inst = LLFloaterCustomize::instance();
inst.setCurrentWearableType(wearable->getType(), disable_camera_switch);
U32 index(0);
gAgentWearables.getWearableIndex(wearable, index);
static_cast<LLPanelEditWearable*>(inst.mTabContainer->getCurrentPanel())->setWearableIndex(index);
}
//static