diff options
| author | Oz Linden <oz@lindenlab.com> | 2013-02-04 09:38:06 -0500 |
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2013-02-04 09:38:06 -0500 |
| commit | 68ec77127b158f0abffb6160eb7d870c85b278ad (patch) | |
| tree | ad43a05bb4a45449d27f4c077ef8ca653f35d7b9 /indra/llprimitive/lltextureentry.cpp | |
| parent | 19233999edfd143d0e7f8e3743dc07455d206172 (diff) | |
| parent | 7cc7ae873c5aeca9b5939176fb70677365e25395 (diff) | |
merge tonyas loop fixes
Diffstat (limited to 'indra/llprimitive/lltextureentry.cpp')
| -rw-r--r-- | indra/llprimitive/lltextureentry.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/llprimitive/lltextureentry.cpp b/indra/llprimitive/lltextureentry.cpp index b04fa809d2..23b15b697c 100644 --- a/indra/llprimitive/lltextureentry.cpp +++ b/indra/llprimitive/lltextureentry.cpp @@ -540,6 +540,16 @@ S32 LLTextureEntry::setMaterialID(const LLMaterialID& pMaterialID) return TEM_CHANGE_NONE; } +S32 LLTextureEntry::setMaterialParams(const LLMaterialPtr pMaterialParams) +{ + if (mMaterial != pMaterialParams) + { + mMaterial = pMaterialParams; + return TEM_CHANGE_TEXTURE; + } + return TEM_CHANGE_NONE; +} + void LLTextureEntry::setMediaData(const LLMediaEntry &media_entry) { mMediaFlags |= MF_HAS_MEDIA; |
