viewer#2006 Fixed terrain textures not updating in the "Region/Estate" floater
parent
27a2531c5b
commit
c8310aaea2
|
|
@ -3147,16 +3147,24 @@ void LLViewerRegion::unpackRegionHandshake()
|
|||
compp->setParamsReady();
|
||||
}
|
||||
|
||||
LLPBRTerrainFeatures::queueQuery(*this, [](LLUUID region_id, bool success, const LLModifyRegion& composition_changes)
|
||||
std::string cap = getCapability("ModifyRegion"); // needed for queueQuery
|
||||
if (cap.empty())
|
||||
{
|
||||
if (!success) { return; }
|
||||
LLViewerRegion* region = LLWorld::getInstance()->getRegionFromID(region_id);
|
||||
if (!region) { return; }
|
||||
LLVLComposition* compp = region->getComposition();
|
||||
if (!compp) { return; }
|
||||
compp->apply(composition_changes);
|
||||
LLFloaterRegionInfo::sRefreshFromRegion(region);
|
||||
});
|
||||
LLFloaterRegionInfo::sRefreshFromRegion(this);
|
||||
}
|
||||
else
|
||||
{
|
||||
LLPBRTerrainFeatures::queueQuery(*this, [](LLUUID region_id, bool success, const LLModifyRegion& composition_changes)
|
||||
{
|
||||
if (!success) { return; }
|
||||
LLViewerRegion* region = LLWorld::getInstance()->getRegionFromID(region_id);
|
||||
if (!region) { return; }
|
||||
LLVLComposition* compp = region->getComposition();
|
||||
if (!compp) { return; }
|
||||
compp->apply(composition_changes);
|
||||
LLFloaterRegionInfo::sRefreshFromRegion(region);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue