summaryrefslogtreecommitdiff
path: root/indra/llprimitive/lltextureentry.h
diff options
context:
space:
mode:
authorGraham Madarasz <graham@lindenlab.com>2013-05-11 19:58:56 -0700
committerGraham Madarasz <graham@lindenlab.com>2013-05-11 19:58:56 -0700
commitf356d7eb9fd730f5f6f5a29fb0706e20876ad3bd (patch)
tree59b643b708e20ec3d56eaa3a0639f1346f80af10 /indra/llprimitive/lltextureentry.h
parenta0998157746d0429d5b8e75fea973c433dcfd3c4 (diff)
Fix many issues with selection misapplication and rendering not matching applied materials
Diffstat (limited to 'indra/llprimitive/lltextureentry.h')
-rwxr-xr-xindra/llprimitive/lltextureentry.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llprimitive/lltextureentry.h b/indra/llprimitive/lltextureentry.h
index c443ebcb30..5cc76cfe82 100755
--- a/indra/llprimitive/lltextureentry.h
+++ b/indra/llprimitive/lltextureentry.h
@@ -100,6 +100,10 @@ public:
void init(const LLUUID& tex_id, F32 scale_s, F32 scale_t, F32 offset_s, F32 offset_t, F32 rotation, U8 bump);
+ bool hasPendingMaterialUpdate() const { return mMaterialUpdatePending; }
+ bool isSelected() const { return mSelected; }
+ bool setSelected(bool sel) { bool prev_sel = mSelected; mSelected = sel; return prev_sel; }
+
// These return a TEM_ flag from above to indicate if something changed.
S32 setID (const LLUUID &tex_id);
S32 setColor(const LLColor4 &color);
@@ -194,11 +198,13 @@ public:
static const char* TEXTURE_MEDIA_DATA_KEY;
protected:
+ bool mSelected;
LLUUID mID; // Texture GUID
LLColor4 mColor;
U8 mBump; // Bump map, shiny, and fullbright
U8 mMediaFlags; // replace with web page, movie, etc.
F32 mGlow;
+ bool mMaterialUpdatePending;
LLMaterialID mMaterialID;
LLMaterialPtr mMaterial;