diff options
author | Dave Parks <davep@lindenlab.com> | 2013-04-03 23:49:53 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2013-04-03 23:49:53 -0500 |
commit | 57b371ab9b5d55b41f3760b48e5e0b0aa906be57 (patch) | |
tree | 73a8991d5a0cf6ccc7f0953435a3e4c23e1ed218 /indra/llprimitive/lltextureentry.cpp | |
parent | e280422d4454549e4fd992ad45ec2ea4d41b08eb (diff) | |
parent | 7a820b88fc45a4a16573387782e1c3f7e412da68 (diff) |
Automated merge with https://bitbucket.org/lindenlab/viewer-development-materials
Diffstat (limited to 'indra/llprimitive/lltextureentry.cpp')
-rw-r--r-- | indra/llprimitive/lltextureentry.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llprimitive/lltextureentry.cpp b/indra/llprimitive/lltextureentry.cpp index 23b15b697c..691216e035 100644 --- a/indra/llprimitive/lltextureentry.cpp +++ b/indra/llprimitive/lltextureentry.cpp @@ -535,6 +535,10 @@ S32 LLTextureEntry::setMaterialID(const LLMaterialID& pMaterialID) if (mMaterialID != pMaterialID) { mMaterialID = pMaterialID; + if (mMaterialID.isNull()) + { + setMaterialParams(NULL); + } return TEM_CHANGE_TEXTURE; } return TEM_CHANGE_NONE; |