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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user