From bc7dc2f94985658595093d4619b4a0ad25f2ff37 Mon Sep 17 00:00:00 2001
From: Dave Parks <davep@lindenlab.com>
Date: Wed, 6 Apr 2022 12:57:07 -0500
Subject: [PATCH] SL-17160 Ignore "getIsAlphaMask" on rigged faces.

---
 indra/newview/llface.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp
index b328dd2962c..b4f4d520145 100644
--- a/indra/newview/llface.cpp
+++ b/indra/newview/llface.cpp
@@ -1172,6 +1172,11 @@ bool LLFace::canRenderAsMask()
 		return true;
 	}
 
+    if (isState(LLFace::RIGGED))
+    { // never auto alpha-mask rigged faces
+        return false;
+    }
+
 	const LLTextureEntry* te = getTextureEntry();
 	if( !te || !getViewerObject() || !getTexture() )
 	{
-- 
GitLab