diff options
author | Dave Parks <davep@lindenlab.com> | 2011-07-07 18:32:42 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-07-07 18:32:42 -0500 |
commit | 2a6e18d147a3ef3f5a8780233c1cef2f7b69af4a (patch) | |
tree | 52115ae225f5e7a9d195cf035d713d42bcaf515c /indra/newview/llmeshrepository.h | |
parent | 9b253ccf68718dea51dc94416b3ece28b42fc32a (diff) |
SH-1774 Fix for preserving material assignments between multiple custom LoDs.
Diffstat (limited to 'indra/newview/llmeshrepository.h')
-rwxr-xr-x | indra/newview/llmeshrepository.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llmeshrepository.h b/indra/newview/llmeshrepository.h index 74a08a998f..d775e8f74a 100755 --- a/indra/newview/llmeshrepository.h +++ b/indra/newview/llmeshrepository.h @@ -92,6 +92,7 @@ public: LLPointer<LLViewerFetchedTexture> mDiffuseMap; std::string mDiffuseMapFilename; std::string mDiffuseMapLabel; + std::string mBinding; LLColor4 mDiffuseColor; bool mFullbright; @@ -120,9 +121,9 @@ public: S32 mLocalMeshID; LLMatrix4 mTransform; - std::vector<LLImportMaterial> mMaterial; + std::map<std::string, LLImportMaterial> mMaterial; - LLModelInstance(LLModel* model, const std::string& label, LLMatrix4& transform, std::vector<LLImportMaterial>& materials) + LLModelInstance(LLModel* model, const std::string& label, LLMatrix4& transform, std::map<std::string, LLImportMaterial>& materials) : mModel(model), mLabel(label), mTransform(transform), mMaterial(materials) { mLocalMeshID = -1; |