From 3dcdc4c85a33437f4de9ce474728ef4ab99eb5c2 Mon Sep 17 00:00:00 2001
From: Andrey Kleshchev <andreykproductengine@lindenlab.com>
Date: Wed, 6 Jul 2022 15:57:58 +0300
Subject: [PATCH] SL-17545 fix double-scheduling of calculations

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

diff --git a/indra/newview/llmodelpreview.cpp b/indra/newview/llmodelpreview.cpp
index d8131171bd1..2920521d317 100644
--- a/indra/newview/llmodelpreview.cpp
+++ b/indra/newview/llmodelpreview.cpp
@@ -839,7 +839,7 @@ void LLModelPreview::clearIncompatible(S32 lod)
         }
     }
 
-    if (replaced_base_model)
+    if (replaced_base_model && !mGenLOD)
     {
         // In case base was replaced, we might need to restart generation
         bool subscribe_for_generation = mLodsQuery.empty();
-- 
GitLab