summaryrefslogtreecommitdiff
path: root/indra/llprimitive/lltextureentry.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2013-04-03 16:56:59 -0500
committerDave Parks <davep@lindenlab.com>2013-04-03 16:56:59 -0500
commit7a820b88fc45a4a16573387782e1c3f7e412da68 (patch)
tree82bdbbb3f338f0b00d3e5a3ffeee50ac1fe06553 /indra/llprimitive/lltextureentry.cpp
parentd0b12d0af50d55d16328ec70833204094adb8bcb (diff)
NORSPEC-71 Lots more UI hookups
Written with and Reviewed By Graham
Diffstat (limited to 'indra/llprimitive/lltextureentry.cpp')
-rw-r--r--indra/llprimitive/lltextureentry.cpp4
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;