From 6a5affde24b1eaff6bb3fbdcfdc2ed6c2ab2bc10 Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Mon, 13 Dec 2021 12:01:08 -0500
Subject: [PATCH] Fix clicking attachments that intersect with avatar

---
 indra/newview/pipeline.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index 76189d5ba03..03f46a0342e 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -7300,6 +7300,7 @@ LLViewerObject* LLPipeline::lineSegmentIntersectInWorld(const LLVector4a& start,
 		{
 			if ((j == LLViewerRegion::PARTITION_VOLUME) || 
 				(j == LLViewerRegion::PARTITION_BRIDGE) ||
+				(j == LLViewerRegion::PARTITION_AVATAR) || // for attachments
 				(j == LLViewerRegion::PARTITION_CONTROL_AV) ||
 				(j == LLViewerRegion::PARTITION_TERRAIN) ||
 				(j == LLViewerRegion::PARTITION_TREE) ||
-- 
GitLab