aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorUbitUmarov2018-11-13 01:19:44 +0000
committerUbitUmarov2018-11-13 01:19:44 +0000
commit48854ec83d9ead2ceb277a2ecc0ce1d9b2f997f8 (patch)
treedfcbcdfe09b29c0b62859bd27cf9ff336531f2d3 /OpenSim
parentoops (diff)
downloadopensim-SC-48854ec83d9ead2ceb277a2ecc0ce1d9b2f997f8.zip
opensim-SC-48854ec83d9ead2ceb277a2ecc0ce1d9b2f997f8.tar.gz
opensim-SC-48854ec83d9ead2ceb277a2ecc0ce1d9b2f997f8.tar.bz2
opensim-SC-48854ec83d9ead2ceb277a2ecc0ce1d9b2f997f8.tar.xz
some cleaup
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs20
1 files changed, 10 insertions, 10 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
index f388064..4a3e65e 100644
--- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
@@ -673,15 +673,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
673 return null; 673 return null;
674 } 674 }
675 675
676 // If we're returning someone's item, it goes back to the
677 // owner's Lost And Found folder.
678 // Delete is treated like return in this case
679 // Deleting your own items makes them go to trash
680 //
681
682 InventoryFolderBase folder = null;
683 InventoryItemBase item = null; 676 InventoryItemBase item = null;
684
685 if (DeRezAction.SaveToExistingUserInventoryItem == action) 677 if (DeRezAction.SaveToExistingUserInventoryItem == action)
686 { 678 {
687 item = m_Scene.InventoryService.GetItem(userID, so.RootPart.FromUserInventoryItemID); 679 item = m_Scene.InventoryService.GetItem(userID, so.RootPart.FromUserInventoryItemID);
@@ -689,7 +681,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
689 //item = userInfo.RootFolder.FindItem( 681 //item = userInfo.RootFolder.FindItem(
690 // objectGroup.RootPart.FromUserInventoryItemID); 682 // objectGroup.RootPart.FromUserInventoryItemID);
691 683
692 if (null == item) 684 if (item == null)
693 { 685 {
694 m_log.DebugFormat( 686 m_log.DebugFormat(
695 "[INVENTORY ACCESS MODULE]: Object {0} {1} scheduled for save to inventory has already been deleted.", 687 "[INVENTORY ACCESS MODULE]: Object {0} {1} scheduled for save to inventory has already been deleted.",
@@ -702,6 +694,13 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
702 694
703 // Folder magic 695 // Folder magic
704 // 696 //
697 // If we're returning someone's item, it goes back to the
698 // owner's Lost And Found folder.
699 // Delete is treated like return in this case
700 // Deleting your own items makes them go to trash
701 //
702 InventoryFolderBase folder = null;
703
705 if (action == DeRezAction.Delete) 704 if (action == DeRezAction.Delete)
706 { 705 {
707 // Deleting someone else's item 706 // Deleting someone else's item
@@ -758,7 +757,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
758 { 757 {
759 folder = m_Scene.InventoryService.GetFolder(userID, so.FromFolderID); 758 folder = m_Scene.InventoryService.GetFolder(userID, so.FromFolderID);
760 759
761 if(folder.Type == 14 || folder.Type == 16) 760 if(folder.Type == (int)FolderType.Trash || folder.Type == (int)FolderType.LostAndFound)
762 { 761 {
763 // folder.Type = 6; 762 // folder.Type = 6;
764 folder = m_Scene.InventoryService.GetFolderForType(userID, FolderType.Object); 763 folder = m_Scene.InventoryService.GetFolderForType(userID, FolderType.Object);
@@ -817,6 +816,7 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
817 RayEnd, RayStart, RayTargetID, BypassRayCast, RayEndIsIntersection, 816 RayEnd, RayStart, RayTargetID, BypassRayCast, RayEndIsIntersection,
818 RezSelected, RemoveItem, fromTaskID, attachment); 817 RezSelected, RemoveItem, fromTaskID, attachment);
819 } 818 }
819
820 // compatility 820 // compatility
821 public virtual SceneObjectGroup RezObject( 821 public virtual SceneObjectGroup RezObject(
822 IClientAPI remoteClient, InventoryItemBase item, UUID assetID, Vector3 RayEnd, Vector3 RayStart, 822 IClientAPI remoteClient, InventoryItemBase item, UUID assetID, Vector3 RayEnd, Vector3 RayStart,