FIRE-20309: Mesh model name in upload floater gets overwritten when selecting LOD/Physics file
parent
ea6dd43a30
commit
55494e1e05
|
|
@ -2239,7 +2239,14 @@ void LLModelPreview::loadModelCallback(S32 loaded_lod)
|
|||
if (!mBaseModel.empty())
|
||||
{
|
||||
const std::string& model_name = mBaseModel[0]->getName();
|
||||
mFMP->getChild<LLUICtrl>("description_form")->setValue(model_name);
|
||||
// <FS:Ansariel> FIRE-20309: Mesh model name gets overwritten when selecting LOD/Physics file
|
||||
//mFMP->getChild<LLUICtrl>("description_form")->setValue(model_name);
|
||||
LLLineEditor* description_form = mFMP->getChild<LLLineEditor>("description_form");
|
||||
if (description_form->getText().empty())
|
||||
{
|
||||
description_form->setText(model_name);
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
}
|
||||
}
|
||||
refresh();
|
||||
|
|
|
|||
Loading…
Reference in New Issue