From c5164cde1341af976eb5a2dfcf381a2ae8d6c62c Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Mon, 25 Apr 2022 20:58:57 -0400
Subject: [PATCH] Missed a file

---
 indra/newview/llmodelpreview.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/indra/newview/llmodelpreview.cpp b/indra/newview/llmodelpreview.cpp
index a4a333e615a..eed4121d8a1 100644
--- a/indra/newview/llmodelpreview.cpp
+++ b/indra/newview/llmodelpreview.cpp
@@ -3281,11 +3281,10 @@ BOOL LLModelPreview::render()
                                 skin, getPreviewAvatar());
 
                             LLMatrix4a bind_shape_matrix = skin->mBindShapeMatrix;
-                            U32 max_joints = LLSkinningUtil::getMaxJointCount();
                             for (U32 j = 0; j < buffer->getNumVerts(); ++j)
                             {
                                 LLMatrix4a final_mat;
-                                 LLSkinningUtil::getPerVertexSkinMatrixChecked(weight[j], mat, final_mat, max_joints);
+                                 LLSkinningUtil::getPerVertexSkinMatrixChecked(weight[j], mat, final_mat);
 
                                 //VECTORIZE THIS
                                 LLVector4a& v = face.mPositions[j];
-- 
GitLab