From bf17e716e914c96565e246d1883eeaa4305937a0 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Wed, 27 Feb 2019 15:37:36 -0500 Subject: [PATCH] Right click edit on a wearable should take you right to that wearable's tab --- indra/newview/llfloatercustomize.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/indra/newview/llfloatercustomize.cpp b/indra/newview/llfloatercustomize.cpp index 7dbb05cab..ac33926bc 100644 --- a/indra/newview/llfloatercustomize.cpp +++ b/indra/newview/llfloatercustomize.cpp @@ -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(inst.mTabContainer->getCurrentPanel())->setWearableIndex(index); } //static