Restricting editing of objects through the debug materials floater to the current region only.

meow-7.2.2
William Todd Stinson 2012-10-10 17:10:35 -07:00
parent 0ea99ea01f
commit 7b3552e932
1 changed files with 5 additions and 0 deletions

View File

@ -686,6 +686,11 @@ void LLFloaterDebugMaterials::requestPutMaterials(bool pIsDoSet)
if (viewerObject != NULL)
{
const LLViewerRegion* viewerRegion = viewerObject->getRegion();
if (region != viewerRegion)
{
llerrs << "cannot currently edit an object on a different region through the debug materials floater" << llendl;
}
S32 numTEs = llmin(static_cast<S32>(viewerObject->getNumTEs()), viewerObject->getNumFaces());
for (S32 curTEIndex = 0; curTEIndex < numTEs; ++curTEIndex)
{