From 4779f91d5d398f136b9d45124bc00e4667c9cde2 Mon Sep 17 00:00:00 2001 From: Aleric Inglewood Date: Tue, 9 Jul 2013 03:09:06 +0200 Subject: [PATCH] Fix Appearance Import button. Params are driven by wearable; changing the base character gets overwritten real quick. Fixed to call the appropriate LLWearable::setVisualParamWeight. I didn't test this in the light of multiwear -but it works for the shape, which is good enough. --- indra/newview/llfloatercustomize.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/newview/llfloatercustomize.cpp b/indra/newview/llfloatercustomize.cpp index 712965961..c757697b3 100644 --- a/indra/newview/llfloatercustomize.cpp +++ b/indra/newview/llfloatercustomize.cpp @@ -343,8 +343,8 @@ void LLFloaterCustomize::onBtnImport_continued(AIFilePicker* filepicker) llwarns << "Bad parameters list: early end of file" << llendl; return; } - gAgentAvatarp->setVisualParamWeight( param_id, param_weight, TRUE); - gAgentAvatarp->updateVisualParams(); + LLWearable* wearable = gAgentWearables.getTopWearable((LLWearableType::EType)typ); + wearable->setVisualParamWeight(param_id, param_weight, TRUE); } }