Skip to content
Snippets Groups Projects
Commit b699ae45 authored by Karl Steifvater's avatar Karl Steifvater
Browse files
parent e8e66794
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,8 @@ bool LLTextureEntry::operator!=(const LLTextureEntry &rhs) const
if (mRotation != rhs.mRotation) return(true);
if (mColor != rhs.mColor) return (true);
if (mBump != rhs.mBump) return (true);
if (mMediaFlags != rhs.mMediaFlags) return true;
if (mMediaFlags != rhs.mMediaFlags) return (true);
if (mGlow != rhs.mGlow) return (true);
return(false);
}
......@@ -104,6 +105,7 @@ bool LLTextureEntry::operator==(const LLTextureEntry &rhs) const
if (mColor != rhs.mColor) return (false);
if (mBump != rhs.mBump) return (false);
if (mMediaFlags != rhs.mMediaFlags) return false;
if (mGlow != rhs.mGlow) return false;
return(true);
}
......@@ -121,7 +123,8 @@ LLSD LLTextureEntry::asLLSD() const
sd["bump"] = getBumpShiny();
sd["fullbright"] = getFullbright();
sd["media_flags"] = getMediaTexGen();
sd["glow"] = getGlow();
return sd;
}
......@@ -170,6 +173,11 @@ bool LLTextureEntry::fromLLSD(LLSD& sd)
{
setMediaTexGen( sd[w].asInteger() );
} else goto fail;
w = "glow";
if (sd.has(w))
{
setGlow((F32)sd[w].asReal() );
}
return true;
fail:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment