mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
apply objectSlamSale to all roots of coalescence objects. replace the
single object condition for renaming
This commit is contained in:
@@ -1034,16 +1034,16 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
|
||||
// Only do these for the first object if we are rezzing a coalescence.
|
||||
// nahh dont mess with coalescence objects,
|
||||
// the name in inventory can be change for inventory purpuses only
|
||||
if (i == 0 && objlist.Count == 1)
|
||||
if (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;
|
||||
rootPart.SalePrice = item.SalePrice;
|
||||
}
|
||||
}
|
||||
|
||||
if ((item.Flags & (uint)InventoryItemFlags.ObjectSlamSale) != 0)
|
||||
{
|
||||
rootPart.ObjectSaleType = item.SaleType;
|
||||
rootPart.SalePrice = item.SalePrice;
|
||||
}
|
||||
|
||||
so.FromFolderID = item.Folder;
|
||||
|
||||
@@ -919,7 +919,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
// Only do these for the first object if we are rezzing a coalescence.
|
||||
// nahh dont mess with coalescence objects,
|
||||
// the name in inventory can be change for inventory purpuses only
|
||||
if (i == 0 && objlist.Count == 1)
|
||||
if (objlist.Count == 1)
|
||||
{
|
||||
rootPart.Name = item.Name;
|
||||
rootPart.Description = item.Description;
|
||||
|
||||
Reference in New Issue
Block a user