diff options
| author | Paul ProductEngine <pguslisty@productengine.com> | 2011-08-16 14:51:37 +0300 |
|---|---|---|
| committer | Paul ProductEngine <pguslisty@productengine.com> | 2011-08-16 14:51:37 +0300 |
| commit | 8a84ec93fc369c26315f26fa2ec5ddf7733700c9 (patch) | |
| tree | 13d9cb5f67ed32da01cfbee08601e2bc0e8bdd9a /indra/newview/llfloatermodelpreview.cpp | |
| parent | fecec49081419dbd7a66533e4d0457784b8d26a0 (diff) | |
| parent | 0301feb80bbf23d65cfd1ddbe22f297c3ff61a48 (diff) | |
Merge
Diffstat (limited to 'indra/newview/llfloatermodelpreview.cpp')
| -rwxr-xr-x | indra/newview/llfloatermodelpreview.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/indra/newview/llfloatermodelpreview.cpp b/indra/newview/llfloatermodelpreview.cpp index 7558cdfaaa..c8f4c3ac36 100755 --- a/indra/newview/llfloatermodelpreview.cpp +++ b/indra/newview/llfloatermodelpreview.cpp @@ -106,7 +106,7 @@ #include <boost/algorithm/string.hpp> -const S32 SLM_SUPPORTED_VERSION = 2; +const S32 SLM_SUPPORTED_VERSION = 3; //static S32 LLFloaterModelPreview::sUploadAmount = 10; @@ -2072,6 +2072,14 @@ bool LLModelLoader::loadFromSLM(const std::string& filename) return false; } + // Set name. + std::string name = data["name"]; + if (!name.empty()) + { + model[LLModel::LOD_HIGH][0]->mLabel = name; + } + + //load instance list model_instance_list instance_list; @@ -3278,6 +3286,10 @@ void LLModelPreview::saveUploadData(const std::string& filename, bool save_skinw LLSD data; data["version"] = SLM_SUPPORTED_VERSION; + if (!mBaseModel.empty()) + { + data["name"] = mBaseModel[0]->getName(); + } S32 mesh_id = 0; |
