aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llprimitive/lltextureentry.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:07 -0500
committerJacek Antonelli2008-08-15 23:45:07 -0500
commit8465910c79b8e746e04fd581cca2d60399e569b9 (patch)
treef43fec3e83c46e0d6190dca923d6fb268b52ffdd /linden/indra/llprimitive/lltextureentry.cpp
parentSecond Life viewer sources 1.18.2.1 (diff)
downloadmeta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.zip
meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.gz
meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.bz2
meta-impy-8465910c79b8e746e04fd581cca2d60399e569b9.tar.xz
Second Life viewer sources 1.18.3.2-RC
Diffstat (limited to '')
-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: