Fix for broken mesh upload, courtesy of Rye Mutt from Alchemy Viewer

master
Ansariel 2023-11-20 13:11:24 +01:00
parent 89720cdb59
commit d820dc2e6c
2 changed files with 2 additions and 0 deletions

View File

@ -2731,6 +2731,7 @@ bool LLDAELoader::loadModelsFromDomMesh(domMesh* mesh, std::vector<LLModel*>& mo
// </FS:Beq>
next->getVolumeFaces() = remainder;
next->mNormalizedScale = ret->mNormalizedScale;
next->mNormalizedTranslation = ret->mNormalizedTranslation; // <FS> Mesh upload fix by Rye Mutt
if ( ret->mMaterialList.size() > LL_SCULPT_MESH_MAX_FACES)
{

View File

@ -56,6 +56,7 @@ const int MODEL_NAMES_LENGTH = sizeof(model_names) / sizeof(std::string);
LLModel::LLModel(LLVolumeParams& params, F32 detail)
: LLVolume(params, detail),
mNormalizedScale(1,1,1),
mNormalizedTranslation(0, 0, 0), // <FS> Mesh upload fix by Rye Mutt
mPelvisOffset( 0.0f ),
mStatus(NO_ERRORS),
mSubmodelID(0)