File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1506,6 +1506,9 @@ bool GenericCAO::visualExpiryRequired(const ObjectProperties &new_) const
1506
1506
* - glow: handled by updateLight()
1507
1507
* - any other properties that do not change appearance
1508
1508
*/
1509
+
1510
+ bool uses_legacy_texture = new_.wield_item .empty () &&
1511
+ (new_.visual == " wielditem" || new_.visual == " item" );
1509
1512
// Ordered to compare primitive types before std::vectors
1510
1513
return old.backface_culling != new_.backface_culling ||
1511
1514
old.is_visible != new_.is_visible ||
@@ -1515,7 +1518,8 @@ bool GenericCAO::visualExpiryRequired(const ObjectProperties &new_) const
1515
1518
old.visual != new_.visual ||
1516
1519
old.visual_size != new_.visual_size ||
1517
1520
old.wield_item != new_.wield_item ||
1518
- old.colors != new_.colors ;
1521
+ old.colors != new_.colors ||
1522
+ (uses_legacy_texture && old.textures != new_.textures );
1519
1523
}
1520
1524
1521
1525
void GenericCAO::processMessage (const std::string &data)
You can’t perform that action at this time.
0 commit comments