From 3c321e5bb37d0430085c361632fb668824e9b500 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Tue, 5 Aug 2014 22:49:41 +0100 Subject: dont mess with names and descriptions on coalescence objects. Inventory name can change for inventory purposes only. --- .../CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/CoreModules') diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs index e4f23f9..e8e281e 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs @@ -1032,10 +1032,13 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess // object itself before we rez. // // Only do these for the first object if we are rezzing a coalescence. - if (i == 0) + // nahh dont mess with coalescence objects, + // the name in inventory can be change for inventory purpuses only + if (i == 0 && objlist.Count == 1) { rootPart.Name = item.Name; rootPart.Description = item.Description; + // this should be done only on first or all ??? if ((item.Flags & (uint)InventoryItemFlags.ObjectSlamSale) != 0) { rootPart.ObjectSaleType = item.SaleType; -- cgit v1.1