SL-20548 Fix revert of materials not working properly in some cases

master
Andrey Kleshchev 2023-10-31 23:15:06 +02:00 committed by akleshchev
parent 40e568a318
commit da71aa168e
1 changed files with 8 additions and 2 deletions

View File

@ -5830,13 +5830,19 @@ void LLSelectMgr::processObjectProperties(LLMessageSystem* msg, void** user_data
}
else
{
// save texture data as soon as we get texture perms first time
bool save_textures = !node->mValid;
if (node->mInventorySerial != inv_serial && node->getObject())
{
node->getObject()->dirtyInventory();
// Even if this isn't object's first udpate, inventory changed
// and some of the applied textures might have been in inventory
// so update texture list.
save_textures = true;
}
// save texture data as soon as we get texture perms first time
if (!node->mValid)
if (save_textures)
{
BOOL can_copy = FALSE;
BOOL can_transfer = FALSE;