Add support for GetMesh2
Tested that it's actually being used - and it seems to download everything at high speed. Certainly an improvement. Textures are still *requested* in the wrong order though; for example - baked textures are simply not requested for a long time - while they are even downloaded from another service!
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user