[EEP] Use ExtEnvironment cap where possible
This commit is contained in:
@@ -1986,6 +1986,7 @@ void LLViewerRegionImpl::buildCapabilityNames(LLSD& capabilityNames)
|
||||
capabilityNames.append("EnvironmentSettings");
|
||||
capabilityNames.append("EstateChangeInfo");
|
||||
capabilityNames.append("EventQueueGet");
|
||||
capabilityNames.append("ExtEnvironment");
|
||||
capabilityNames.append("FetchLib2");
|
||||
capabilityNames.append("FetchLibDescendents2");
|
||||
capabilityNames.append("FetchInventory2");
|
||||
|
||||
@@ -158,7 +158,8 @@ bool LLEnvironmentApply::initiateRequest(const LLSD& content)
|
||||
sLastUpdate = current;
|
||||
|
||||
// Send update request.
|
||||
std::string url = gAgent.getRegion()->getCapability("EnvironmentSettings");
|
||||
std::string url = gAgent.getRegionCapability("ExtEnvironment");
|
||||
if (url.empty()) url = gAgent.getRegionCapability("EnvironmentSettings");
|
||||
if (url.empty())
|
||||
{
|
||||
LL_WARNS("WindlightCaps") << "Applying windlight settings not supported" << LL_ENDL;
|
||||
|
||||
Reference in New Issue
Block a user