Be sure the object's inventory serial is incorrect before dirtying the inventory

Thanks to Ubit for pointing this out
This commit is contained in:
Inusaito Sayori
2014-09-11 16:02:54 -04:00
parent 1ee939c7f7
commit 6863eb6651

View File

@@ -5201,7 +5201,9 @@ void LLSelectMgr::processObjectProperties(LLMessageSystem* msg, void** user_data
{
if (node->mInventorySerial != inv_serial)
{
node->getObject()->dirtyInventory();
if (LLViewerObject* object = node->getObject())
if (object->getInventorySerial() != inv_serial) // Singu Note: the serial number in the object may be correct.
object->dirtyInventory();
}
// save texture data as soon as we get texture perms first time