summaryrefslogtreecommitdiff
path: root/indra/llprimitive/lltextureentry.cpp
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2014-04-22 08:58:38 -0700
committerGraham Linden <graham@lindenlab.com>2014-04-22 08:58:38 -0700
commitae035a0d66604e25b1277c4fa303aea8d798e719 (patch)
tree38ea1ea25240358d692b426eb9834ee2ff2d1d76 /indra/llprimitive/lltextureentry.cpp
parentc71e459bed68c1602d409e5c946c5e016d09d105 (diff)
Modify importer to (optionally) improve debug output, perform name-based LOD association, and handle models with many materials.
Diffstat (limited to 'indra/llprimitive/lltextureentry.cpp')
-rwxr-xr-xindra/llprimitive/lltextureentry.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/llprimitive/lltextureentry.cpp b/indra/llprimitive/lltextureentry.cpp
index 0db75a0e82..9e822e495c 100755
--- a/indra/llprimitive/lltextureentry.cpp
+++ b/indra/llprimitive/lltextureentry.cpp
@@ -191,6 +191,13 @@ bool LLTextureEntry::operator==(const LLTextureEntry &rhs) const
return(true);
}
+bool LLTextureEntry::operator <(const LLTextureEntry &rhs) const
+{
+ if (mID < rhs.mID) return(true);
+ if (mMaterialID < rhs.mMaterialID) return (true);
+ return(false);
+}
+
LLSD LLTextureEntry::asLLSD() const
{
LLSD sd;
@@ -545,7 +552,7 @@ S32 LLTextureEntry::setMaterialID(const LLMaterialID& pMaterialID)
{
mMaterialUpdatePending = true;
mMaterialID = pMaterialID;
- return TEM_CHANGE_TEXTURE;
+ return TEM_CHANGE_NONE;
}
mMaterialUpdatePending = false;