diff options
author | Callum Prentice <callum@gmail.com> | 2017-06-08 15:36:42 -0700 |
---|---|---|
committer | Callum Prentice <callum@gmail.com> | 2017-06-08 15:36:42 -0700 |
commit | 07185d300d7879fc4d8d268210fa2c440efe02f4 (patch) | |
tree | 761fcb3e968339bc04882ea591f56af2fb175187 /indra/newview/llviewerobject.cpp | |
parent | 8d36da00c885f31739ce6bf6dbc162a6ef3a15a1 (diff) | |
parent | cf5865c6e2b27918b526431ccc4309bfc702534e (diff) |
Automated merge with head of lindenlab/viewer64
Diffstat (limited to 'indra/newview/llviewerobject.cpp')
-rw-r--r-- | indra/newview/llviewerobject.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp index 45dbd95bea..9299e60b1c 100644 --- a/indra/newview/llviewerobject.cpp +++ b/indra/newview/llviewerobject.cpp @@ -6274,6 +6274,24 @@ BOOL LLViewerObject::isTempAttachment() const return (mID.notNull() && (mID == mAttachmentItemID)); } +BOOL LLViewerObject::isHiglightedOrBeacon() const +{ + if (LLFloaterReg::instanceVisible("beacons") && (gPipeline.getRenderBeacons() || gPipeline.getRenderHighlights())) + { + BOOL has_media = (getMediaType() == LLViewerObject::MEDIA_SET); + BOOL is_scripted = !isAvatar() && !getParent() && flagScripted(); + BOOL is_physical = !isAvatar() && flagUsePhysics(); + + return (isParticleSource() && gPipeline.getRenderParticleBeacons()) + || (isAudioSource() && gPipeline.getRenderSoundBeacons()) + || (has_media && gPipeline.getRenderMOAPBeacons()) + || (is_scripted && gPipeline.getRenderScriptedBeacons()) + || (is_scripted && flagHandleTouch() && gPipeline.getRenderScriptedTouchBeacons()) + || (is_physical && gPipeline.getRenderPhysicalBeacons()); + } + return FALSE; +} + const LLUUID &LLViewerObject::getAttachmentItemID() const { |