diff options
author | Ptolemy <ptolemy@lindenlab.com> | 2022-06-23 14:36:26 -0700 |
---|---|---|
committer | Ptolemy <ptolemy@lindenlab.com> | 2022-06-23 14:36:26 -0700 |
commit | 861e7b6be812f450ed9b4580a8c7ca30d88a26dd (patch) | |
tree | 4f08feb9a76e6a1f52c9d50d66c979d51f86cb64 /indra/llprimitive/llmaterialid.cpp | |
parent | 8fa6bcb5a5abdf0c4649df65c900dee66c3ccddc (diff) | |
parent | 394479d7cc48a0170854e07f14267e28ba247990 (diff) |
Merge branch 'DRTVWR-559' of bitbucket.org:lindenlab/viewer into DRTVWR-559
Diffstat (limited to 'indra/llprimitive/llmaterialid.cpp')
-rw-r--r-- | indra/llprimitive/llmaterialid.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llprimitive/llmaterialid.cpp b/indra/llprimitive/llmaterialid.cpp index f88a607c4f..340a83801c 100644 --- a/indra/llprimitive/llmaterialid.cpp +++ b/indra/llprimitive/llmaterialid.cpp @@ -155,6 +155,13 @@ std::string LLMaterialID::asString() const return materialIDString; } +LLUUID LLMaterialID::asUUID() const +{ + LLUUID ret; + memcpy(ret.mData, mID, MATERIAL_ID_SIZE); + return ret; +} + std::ostream& operator<<(std::ostream& s, const LLMaterialID &material_id) { s << material_id.asString(); |