allow visually muted results to be cached from const methods
parent
71a38e3a76
commit
059b561dd2
|
|
@ -3080,7 +3080,7 @@ void LLVOAvatar::slamPosition()
|
|||
mRoot->updateWorldMatrixChildren();
|
||||
}
|
||||
|
||||
bool LLVOAvatar::isVisuallyMuted()
|
||||
bool LLVOAvatar::isVisuallyMuted() const
|
||||
{
|
||||
bool muted = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -385,7 +385,7 @@ public:
|
|||
|
||||
public:
|
||||
U32 renderImpostor(LLColor4U color = LLColor4U(255,255,255,255), S32 diffuse_channel = 0);
|
||||
bool isVisuallyMuted();
|
||||
bool isVisuallyMuted() const;
|
||||
void setCachedVisualMute(bool muted) { mCachedVisualMute = muted; };
|
||||
void forceUpdateVisualMuteSettings();
|
||||
|
||||
|
|
@ -422,8 +422,9 @@ private:
|
|||
S32 mUpdatePeriod;
|
||||
S32 mNumInitFaces; //number of faces generated when creating the avatar drawable, does not inculde splitted faces due to long vertex buffer.
|
||||
|
||||
bool mCachedVisualMute; // cached return value for isVisuallyMuted()
|
||||
F64 mCachedVisualMuteUpdateTime; // Time to update mCachedVisualMute
|
||||
// the isVisuallyMuted method uses these mutable values to avoid recalculating too frequently
|
||||
mutable bool mCachedVisualMute; // cached return value for isVisuallyMuted()
|
||||
mutable F64 mCachedVisualMuteUpdateTime; // Time to update mCachedVisualMute
|
||||
|
||||
VisualMuteSettings mVisuallyMuteSetting; // Always or never visually mute this AV
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue