From 1b382230406de41202c35008c844a3d48f8ffe70 Mon Sep 17 00:00:00 2001 From: Beq Date: Thu, 8 May 2025 21:46:10 +0100 Subject: [PATCH] FIRE-35062/SL-19968 & possibly #4014 - vanishing meshes after TP/login There may be other bugs with similar symptoms, however. Having spent a lot of time tracking specific attachments through teleports and examining the absence or not, this fix directly addresses a common situation whereby post-TP calls to rebuildGeom can query the region for "MeshRez" support before the caps have been received resulting in the mesh being eliminated until the next rebuildGeom() --- indra/newview/llviewerregion.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp index d2e8826e10..36c525b59a 100755 --- a/indra/newview/llviewerregion.cpp +++ b/indra/newview/llviewerregion.cpp @@ -3985,6 +3985,13 @@ bool LLViewerRegion::bakesOnMeshEnabled() const bool LLViewerRegion::meshRezEnabled() const { + // FIRE-35602 and many similar reports - Mesh not appearing after TP/login + if(!mSimulatorFeaturesReceived) + { + LL_INFOS("MeshRez") << "MeshRezEnabled: SimulatorFeatures not received yet. Defaulting to true" << LL_ENDL; + return true; + } + // return (mSimulatorFeatures.has("MeshRezEnabled") && mSimulatorFeatures["MeshRezEnabled"].asBoolean()); }