mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
clear sell data when selling a object copy
This commit is contained in:
@@ -151,7 +151,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.BuySell
|
||||
|
||||
rootpart.ObjectSaleType = 0;
|
||||
rootpart.SalePrice = 10;
|
||||
rootpart.ClickAction = Convert.ToByte(0);
|
||||
rootpart.ClickAction = 0;
|
||||
|
||||
group.HasGroupChanged = true;
|
||||
rootpart.SendPropertiesToClient(remoteClient);
|
||||
@@ -178,8 +178,21 @@ namespace OpenSim.Region.CoreModules.World.Objects.BuySell
|
||||
return false;
|
||||
}
|
||||
|
||||
// save sell data
|
||||
int price = rootpart.SalePrice;
|
||||
byte clickAction = rootpart.ClickAction;
|
||||
|
||||
// reset sale data for the copy
|
||||
rootpart.ObjectSaleType = 0;
|
||||
rootpart.SalePrice = 10;
|
||||
rootpart.ClickAction = 0;
|
||||
|
||||
string sceneObjectXml = SceneObjectSerializer.ToOriginalXmlFormat(group);
|
||||
|
||||
rootpart.ObjectSaleType = saleType;
|
||||
rootpart.SalePrice = price;
|
||||
rootpart.ClickAction = clickAction;
|
||||
|
||||
string name = rootpart.Name;
|
||||
string desc = rootpart.Description;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user