aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llprimitive/lltextureentry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llprimitive/lltextureentry.cpp')
-rw-r--r--linden/indra/llprimitive/lltextureentry.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/linden/indra/llprimitive/lltextureentry.cpp b/linden/indra/llprimitive/lltextureentry.cpp
index 4f329f2..73ecd96 100644
--- a/linden/indra/llprimitive/lltextureentry.cpp
+++ b/linden/indra/llprimitive/lltextureentry.cpp
@@ -109,7 +109,8 @@ bool LLTextureEntry::operator!=(const LLTextureEntry &rhs) const
109 if (mRotation != rhs.mRotation) return(true); 109 if (mRotation != rhs.mRotation) return(true);
110 if (mColor != rhs.mColor) return (true); 110 if (mColor != rhs.mColor) return (true);
111 if (mBump != rhs.mBump) return (true); 111 if (mBump != rhs.mBump) return (true);
112 if (mMediaFlags != rhs.mMediaFlags) return true; 112 if (mMediaFlags != rhs.mMediaFlags) return (true);
113 if (mGlow != rhs.mGlow) return (true);
113 return(false); 114 return(false);
114} 115}
115 116
@@ -124,6 +125,7 @@ bool LLTextureEntry::operator==(const LLTextureEntry &rhs) const
124 if (mColor != rhs.mColor) return (false); 125 if (mColor != rhs.mColor) return (false);
125 if (mBump != rhs.mBump) return (false); 126 if (mBump != rhs.mBump) return (false);
126 if (mMediaFlags != rhs.mMediaFlags) return false; 127 if (mMediaFlags != rhs.mMediaFlags) return false;
128 if (mGlow != rhs.mGlow) return false;
127 return(true); 129 return(true);
128} 130}
129 131
@@ -141,7 +143,8 @@ LLSD LLTextureEntry::asLLSD() const
141 sd["bump"] = getBumpShiny(); 143 sd["bump"] = getBumpShiny();
142 sd["fullbright"] = getFullbright(); 144 sd["fullbright"] = getFullbright();
143 sd["media_flags"] = getMediaTexGen(); 145 sd["media_flags"] = getMediaTexGen();
144 146 sd["glow"] = getGlow();
147
145 return sd; 148 return sd;
146} 149}
147 150
@@ -190,6 +193,11 @@ bool LLTextureEntry::fromLLSD(LLSD& sd)
190 { 193 {
191 setMediaTexGen( sd[w].asInteger() ); 194 setMediaTexGen( sd[w].asInteger() );
192 } else goto fail; 195 } else goto fail;
196 w = "glow";
197 if (sd.has(w))
198 {
199 setGlow((F32)sd[w].asReal() );
200 }
193 201
194 return true; 202 return true;
195fail: 203fail: