summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-10-31 23:15:06 +0200
committerakleshchev <117672381+akleshchev@users.noreply.github.com>2023-10-31 23:18:11 +0200
commitda71aa168e7a82ef0821d032c6509febcfc6185b (patch)
treebcc0f33fd10abbfd6e82018c25bbd7b1f951d086 /indra/newview
parent40e568a3180f641fe0feb0e6ddd696c07ed662be (diff)
SL-20548 Fix revert of materials not working properly in some cases
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llselectmgr.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/newview/llselectmgr.cpp b/indra/newview/llselectmgr.cpp
index c86e43333c..d172a87b1d 100644
--- a/indra/newview/llselectmgr.cpp
+++ b/indra/newview/llselectmgr.cpp
@@ -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;