diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index 66ed09f26..55afaecee 100644 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -2412,7 +2412,11 @@ void LLMeshRepository::notifyLoadedMeshes() { region_name = gAgent.getRegion()->getName(); - mGetMeshCapability = gAgent.getRegion()->getCapability("GetMesh"); + mGetMeshCapability = gAgent.getRegion()->getCapability("GetMesh2"); + if (mGetMeshCapability.empty()) + { + mGetMeshCapability = gAgent.getRegion()->getCapability("GetMesh"); + } } } diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp index b00bf25ad..9402996b4 100644 --- a/indra/newview/llviewerregion.cpp +++ b/indra/newview/llviewerregion.cpp @@ -1675,6 +1675,7 @@ void LLViewerRegionImpl::buildCapabilityNames(LLSD& capabilityNames) capabilityNames.append("GamingData"); //Used by certain grids. capabilityNames.append("GetDisplayNames"); capabilityNames.append("GetMesh"); + capabilityNames.append("GetMesh2"); // Used on SecondLife(tm) sim versions 280647 and higher (13.09.17). capabilityNames.append("GetObjectCost"); capabilityNames.append("GetObjectPhysicsData"); capabilityNames.append("GetTexture"); @@ -2072,7 +2073,7 @@ bool LLViewerRegion::meshRezEnabled() const { if (getCapability("SimulatorFeatures").empty()) { - return !getCapability("GetMesh").empty(); + return !getCapability("GetMesh").empty() || !getCapability("GetMesh2").empty(); } else {