diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index 816dd7727e..90c5132882 100644 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -6210,13 +6210,15 @@ bool LLMeshRepository::meshRezEnabled() // FIRE-35602 etc - Mesh not appearing after TP/login (opensim only) // For OpenSim there is still an outside chance that mesh rezzing is disabled on the sim/region // restore the old behaviour but keep the bias to mesh_enabled == true in the underlying checks. -#ifdef OPENSIM - LLViewerRegion *region = gAgent.getRegion(); - if(mesh_enabled && - region) +#ifdef OPENSIM + if (LLGridManager::instance().isInOpenSim()) { - return region->meshRezEnabled(); + if (LLViewerRegion* region = gAgent.getRegion(); mesh_enabled && region) + { + return region->meshRezEnabled(); + } } + else #endif // OPENSIM // return mesh_enabled; diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp index f88545d121..c214507a46 100755 --- a/indra/newview/llviewerregion.cpp +++ b/indra/newview/llviewerregion.cpp @@ -3988,19 +3988,11 @@ bool LLViewerRegion::bakesOnMeshEnabled() const #ifdef OPENSIM bool LLViewerRegion::meshRezEnabled() const { - if (LLGridManager::getInstance()->isInOpenSim()) - { - if(!mSimulatorFeaturesReceived) - { - LL_DEBUGS("MeshRez") << "MeshRezEnabled: SimulatorFeatures not received yet. Defaulting to true" << LL_ENDL; - return true; - } - } - return (mSimulatorFeatures.has("MeshRezEnabled") && - mSimulatorFeatures["MeshRezEnabled"].asBoolean()); + return (mSimulatorFeatures.has("MeshRezEnabled") && mSimulatorFeatures["MeshRezEnabled"].asBoolean()); } #endif // + bool LLViewerRegion::dynamicPathfindingEnabled() const { return ( mSimulatorFeatures.has("DynamicPathfindingEnabled") &&