summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2025-04-01 16:30:21 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-04-01 22:13:54 +0300
commit3a03c5f8fe00ae23a33c823625052f39fb42501e (patch)
tree185ab1ed3cda31047b364ba39838de2fec649585
parent3c9bb9bfe5aa178141c381cfac066fd31a7252b4 (diff)
#3846 Crash at updateGLTFMaterials
-rw-r--r--indra/newview/lllocalbitmaps.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/lllocalbitmaps.cpp b/indra/newview/lllocalbitmaps.cpp
index 75c77e9301..e31fbb188a 100644
--- a/indra/newview/lllocalbitmaps.cpp
+++ b/indra/newview/lllocalbitmaps.cpp
@@ -700,11 +700,15 @@ void LLLocalBitmap::updateGLTFMaterials(LLUUID old_id, LLUUID new_id)
// do not create a new material, reuse existing pointer
// so that mTextureEntires remains untouched
LLGLTFMaterial* render_mat = entry->getGLTFRenderMaterial();
- if (render_mat)
+ if (render_mat && render_mat != mat)
{
*render_mat = *mat;
render_mat->applyOverride(*override_mat); // can update mGLTFMaterialWithLocalTextures
}
+ else
+ {
+ LL_WARNS() << "A TE had an override, but no render material" << LL_ENDL;
+ }
}
}
}