summaryrefslogtreecommitdiff
path: root/indra/newview/llselectmgr.h
diff options
context:
space:
mode:
authorruslantproductengine <ruslantproductengine@lindenlab.com>2019-01-25 18:26:42 +0200
committerruslantproductengine <ruslantproductengine@lindenlab.com>2019-01-25 18:26:42 +0200
commit4c0f6f5825bdd833d0bad05bf431c29acba45ae0 (patch)
tree8d324e23ffab2754994316ece97dc9df6fc884e1 /indra/newview/llselectmgr.h
parent60b4c6405b8adb2a12f53ed403731f948cb3937f (diff)
SL-10194 Selecting mesh face doesn't highlight the face in any way
- Fixed according to Steeltoe notes. - Add const modifier for some methods
Diffstat (limited to 'indra/newview/llselectmgr.h')
-rw-r--r--indra/newview/llselectmgr.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/indra/newview/llselectmgr.h b/indra/newview/llselectmgr.h
index 303a984bd0..ce0fee8803 100644
--- a/indra/newview/llselectmgr.h
+++ b/indra/newview/llselectmgr.h
@@ -173,13 +173,14 @@ public:
void selectAllTEs(BOOL b);
void selectTE(S32 te_index, BOOL selected);
- BOOL isTESelected(S32 te_index);
- S32 getLastSelectedTE();
- S32 getLastOperatedTE();
+ BOOL isTESelected(S32 te_index) const;
+ bool hasSelectedTE() const { return TE_SELECT_MASK_ALL & mTESelectMask; }
+ S32 getLastSelectedTE() const;
+ S32 getLastOperatedTE() const { return mLastTESelected; }
S32 getTESelectMask() { return mTESelectMask; }
void renderOneSilhouette(const LLColor4 &color);
void setTransient(BOOL transient) { mTransient = transient; }
- BOOL isTransient() { return mTransient; }
+ BOOL isTransient() const { return mTransient; }
LLViewerObject* getObject();
void setObject(LLViewerObject* object);
// *NOTE: invalidate stored textures and colors when # faces change
@@ -539,10 +540,10 @@ public:
EGridMode getGridMode() { return mGridMode; }
void getGrid(LLVector3& origin, LLQuaternion& rotation, LLVector3 &scale, bool for_snap_guides = false);
- BOOL getTEMode() { return mTEMode; }
- void setTEMode(BOOL b) { mTEMode = b; }
+ BOOL getTEMode() const { return mTEMode; }
+ void setTEMode(BOOL b) { mTEMode = b; }
- BOOL shouldShowSelection() { return mShowSelection; }
+ BOOL shouldShowSelection() const { return mShowSelection; }
LLBBox getBBoxOfSelection() const;
LLBBox getSavedBBoxOfSelection() const { return mSavedSelectionBBox; }