Mesh upload: LOD Model has no parent error when using GLOD

Fixes issue where suffices were not being stripped from LOD name when using the "GLOD" LOD generation
meow-7.2.2
Beq 2023-12-02 23:31:00 +00:00
parent a74b4cfeea
commit ca154e0b68
1 changed files with 1 additions and 2 deletions

View File

@ -1882,8 +1882,7 @@ void LLModelPreview::genGlodLODs(S32 which_lod, U32 decimation, bool enforce_tri
LLVolumeParams volume_params;
volume_params.setType(LL_PCODE_PROFILE_SQUARE, LL_PCODE_PATH_LINE);
mModel[lod][mdl_idx] = new LLModel(volume_params, 0.f);
std::string name = base->mLabel + getLodSuffix(lod);
std::string name = stripSuffix(base->mLabel) + getLodSuffix(lod);
mModel[lod][mdl_idx]->mLabel = name;
mModel[lod][mdl_idx]->mSubmodelID = base->mSubmodelID;