DRTVWR-418: Reconcile new code with new Alex Ivy LLPipeline API.
parent
fe64db61d6
commit
cf5865c6e2
|
|
@ -6276,18 +6276,18 @@ BOOL LLViewerObject::isTempAttachment() const
|
|||
|
||||
BOOL LLViewerObject::isHiglightedOrBeacon() const
|
||||
{
|
||||
if (LLFloaterReg::instanceVisible("beacons") && (gPipeline.getRenderBeacons(NULL) || gPipeline.getRenderHighlights(NULL)))
|
||||
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(NULL))
|
||||
|| (isAudioSource() && gPipeline.getRenderSoundBeacons(NULL))
|
||||
|| (has_media && gPipeline.getRenderMOAPBeacons(NULL))
|
||||
|| (is_scripted && gPipeline.getRenderScriptedBeacons(NULL))
|
||||
|| (is_scripted && flagHandleTouch() && gPipeline.getRenderScriptedTouchBeacons(NULL))
|
||||
|| (is_physical && gPipeline.getRenderPhysicalBeacons(NULL));
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue