aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorUbitUmarov2018-11-12 23:53:20 +0000
committerUbitUmarov2018-11-12 23:53:20 +0000
commite4ed2d7d6ca1a97a971921a225eb15c656306eeb (patch)
tree6c628b617b4403f53b06e93d0bd04a410ce5d59f /OpenSim/Region/CoreModules
parenta few changes to deattach object update (diff)
downloadopensim-SC-e4ed2d7d6ca1a97a971921a225eb15c656306eeb.zip
opensim-SC-e4ed2d7d6ca1a97a971921a225eb15c656306eeb.tar.gz
opensim-SC-e4ed2d7d6ca1a97a971921a225eb15c656306eeb.tar.bz2
opensim-SC-e4ed2d7d6ca1a97a971921a225eb15c656306eeb.tar.xz
similar changes on CopyBundleToInventory
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs15
1 files changed, 6 insertions, 9 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
index 8dfe5c1..d8b7072 100644
--- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
@@ -437,7 +437,6 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
437 if (objectGroup.RootPart.Shape.PCode != (byte) PCode.Tree && 437 if (objectGroup.RootPart.Shape.PCode != (byte) PCode.Tree &&
438 objectGroup.RootPart.Shape.PCode != (byte) PCode.NewTree) 438 objectGroup.RootPart.Shape.PCode != (byte) PCode.NewTree)
439 objectGroup.RootPart.Shape.LastAttachPoint = (byte)objectGroup.AttachmentPoint; 439 objectGroup.RootPart.Shape.LastAttachPoint = (byte)objectGroup.AttachmentPoint;
440
441 } 440 }
442 441
443 objectGroup.AbsolutePosition = inventoryStoredPosition; 442 objectGroup.AbsolutePosition = inventoryStoredPosition;
@@ -513,15 +512,18 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
513 item.SalePrice = objlist[0].RootPart.SalePrice; 512 item.SalePrice = objlist[0].RootPart.SalePrice;
514 } 513 }
515 514
515 string name = objlist[0].RootPart.Name;
516 string desc = objlist[0].RootPart.Description;
516 AssetBase asset = CreateAsset( 517 AssetBase asset = CreateAsset(
517 objlist[0].GetPartName(objlist[0].RootPart.LocalId), 518 name, desc,
518 objlist[0].GetPartDescription(objlist[0].RootPart.LocalId),
519 (sbyte)AssetType.Object, 519 (sbyte)AssetType.Object,
520 Utils.StringToBytes(itemXml), 520 Utils.StringToBytes(itemXml),
521 objlist[0].OwnerID.ToString()); 521 objlist[0].OwnerID.ToString());
522 m_Scene.AssetService.Store(asset); 522 m_Scene.AssetService.Store(asset);
523 523
524 item.AssetID = asset.FullID; 524 item.AssetID = asset.FullID;
525 item.Description = desc;
526 item.Name = name;
525 527
526 if (DeRezAction.SaveToExistingUserInventoryItem == action) 528 if (DeRezAction.SaveToExistingUserInventoryItem == action)
527 { 529 {
@@ -530,12 +532,6 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
530 else 532 else
531 { 533 {
532 AddPermissions(item, objlist[0], objlist, remoteClient); 534 AddPermissions(item, objlist[0], objlist, remoteClient);
533
534 item.CreationDate = Util.UnixTimeSinceEpoch();
535 item.Description = asset.Description;
536 item.Name = asset.Name;
537 item.AssetType = asset.Type;
538
539 m_Scene.AddInventoryItem(item); 535 m_Scene.AddInventoryItem(item);
540 536
541 if (remoteClient != null && item.Owner == remoteClient.AgentId) 537 if (remoteClient != null && item.Owner == remoteClient.AgentId)
@@ -784,6 +780,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
784 item.InvType = (int)InventoryType.Object; 780 item.InvType = (int)InventoryType.Object;
785 item.Folder = folder.ID; 781 item.Folder = folder.ID;
786 item.Owner = userID; 782 item.Owner = userID;
783 item.CreationDate = Util.UnixTimeSinceEpoch();
787 } 784 }
788 785
789 return item; 786 return item;