Skip to content

Commit

Permalink
Fix failure to save the normalized translation data during collada up…
Browse files Browse the repository at this point in the history
…load
  • Loading branch information
RyeMutt committed Nov 20, 2023
1 parent d6e7b5d commit c6e0af0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion indra/llprimitive/lldaeloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2584,7 +2584,8 @@ bool LLDAELoader::loadModelsFromDomMesh(domMesh* mesh, std::vector<LLModel*>& mo
next->mLabel = model_name + (char)((int)'a' + next->mSubmodelID) + lod_suffix[mLod];
next->getVolumeFaces() = remainder;
next->mNormalizedScale = ret->mNormalizedScale;

next->mNormalizedTranslation = ret->mNormalizedTranslation;

if ( ret->mMaterialList.size() > LL_SCULPT_MESH_MAX_FACES)
{
next->mMaterialList.assign(ret->mMaterialList.begin() + LL_SCULPT_MESH_MAX_FACES, ret->mMaterialList.end());
Expand Down
3 changes: 2 additions & 1 deletion indra/llprimitive/llmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ const int MODEL_NAMES_LENGTH = sizeof(model_names) / sizeof(std::string);

LLModel::LLModel(LLVolumeParams& params, F32 detail)
: LLVolume(params, detail),
mNormalizedScale(1,1,1),
mNormalizedScale(1,1,1),
mNormalizedTranslation(0, 0, 0),
mPelvisOffset( 0.0f ),
mStatus(NO_ERRORS),
mSubmodelID(0)
Expand Down

0 comments on commit c6e0af0

Please sign in to comment.