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.
This commit is contained in:
Aleric Inglewood
2013-07-09 03:09:06 +02:00
parent 6103cb23e6
commit 4779f91d5d

View File

@@ -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);
}
}