diff options
author | Dave Parks <davep@lindenlab.com> | 2011-03-21 17:31:25 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-03-21 17:31:25 -0500 |
commit | 51a4867ae6bcf0ec71882ba77b1c995d98834126 (patch) | |
tree | fee42a26578ae8d73bb64bead703a6e2837d53f3 /indra/newview/llmeshrepository.cpp | |
parent | a034ffd4b1af3560ae8498725bb96bd6f651ca48 (diff) |
SH-1168 Export upload data to disk on upload.
Diffstat (limited to 'indra/newview/llmeshrepository.cpp')
-rwxr-xr-x | indra/newview/llmeshrepository.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index 93e773d33b..47dc343f5e 100755 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -3584,3 +3584,30 @@ void LLPhysicsDecomp::Request::setStatusMessage(const std::string& msg) mStatusMessage = msg; } +LLSD LLModelInstance::asLLSD() +{ + LLSD ret; + + ret["mesh_id"] = mModel->mLocalID; + ret["label"] = mLabel; + ret["transform"] = mTransform.getValue(); + + for (U32 i = 0; i < mMaterial.size(); ++i) + { + ret["material"][i] = mMaterial[i].asLLSD(); + } + + return ret; +} + +LLSD LLImportMaterial::asLLSD() +{ + LLSD ret; + + ret["diffuse"]["filename"] = mDiffuseMapFilename; + ret["diffuse"]["label"] = mDiffuseMapLabel; + ret["diffuse"]["color"] = mDiffuseColor.getValue(); + ret["fullbright"] = mFullbright; + + return ret; +} |