diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden')
4 files changed, 15 insertions, 5 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs index 20df8a6..8752404 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs | |||
@@ -49,6 +49,7 @@ using OpenSim.Services.Interfaces; | |||
49 | using Caps = OpenSim.Framework.Capabilities.Caps; | 49 | using Caps = OpenSim.Framework.Capabilities.Caps; |
50 | using OSDArray = OpenMetaverse.StructuredData.OSDArray; | 50 | using OSDArray = OpenMetaverse.StructuredData.OSDArray; |
51 | using OSDMap = OpenMetaverse.StructuredData.OSDMap; | 51 | using OSDMap = OpenMetaverse.StructuredData.OSDMap; |
52 | using PermissionMask = OpenSim.Framework.PermissionMask; | ||
52 | 53 | ||
53 | namespace OpenSim.Region.ClientStack.Linden | 54 | namespace OpenSim.Region.ClientStack.Linden |
54 | { | 55 | { |
@@ -705,9 +706,9 @@ namespace OpenSim.Region.ClientStack.Linden | |||
705 | // If we set PermissionMask.All then when we rez the item the next permissions will replace the current | 706 | // If we set PermissionMask.All then when we rez the item the next permissions will replace the current |
706 | // (owner) permissions. This becomes a problem if next permissions are changed. | 707 | // (owner) permissions. This becomes a problem if next permissions are changed. |
707 | item.CurrentPermissions | 708 | item.CurrentPermissions |
708 | = (uint)(PermissionMask.Move | PermissionMask.Copy | PermissionMask.Modify | PermissionMask.Transfer); | 709 | = (uint)(PermissionMask.Move | PermissionMask.Copy | PermissionMask.Modify | PermissionMask.Transfer | PermissionMask.Export); |
709 | 710 | ||
710 | item.BasePermissions = (uint)PermissionMask.All; | 711 | item.BasePermissions = (uint)PermissionMask.All | (uint)PermissionMask.Export; |
711 | item.EveryOnePermissions = 0; | 712 | item.EveryOnePermissions = 0; |
712 | item.NextPermissions = (uint)PermissionMask.All; | 713 | item.NextPermissions = (uint)PermissionMask.All; |
713 | item.CreationDate = Util.UnixTimeSinceEpoch(); | 714 | item.CreationDate = Util.UnixTimeSinceEpoch(); |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/NewFileAgentInventoryVariablePriceModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/NewFileAgentInventoryVariablePriceModule.cs index 5529550..f69a0bb 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/NewFileAgentInventoryVariablePriceModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/NewFileAgentInventoryVariablePriceModule.cs | |||
@@ -44,6 +44,7 @@ using OpenSim.Region.Framework.Scenes; | |||
44 | using OpenSim.Services.Interfaces; | 44 | using OpenSim.Services.Interfaces; |
45 | using Caps = OpenSim.Framework.Capabilities.Caps; | 45 | using Caps = OpenSim.Framework.Capabilities.Caps; |
46 | using OpenSim.Framework.Capabilities; | 46 | using OpenSim.Framework.Capabilities; |
47 | using PermissionMask = OpenSim.Framework.PermissionMask; | ||
47 | 48 | ||
48 | namespace OpenSim.Region.ClientStack.Linden | 49 | namespace OpenSim.Region.ClientStack.Linden |
49 | { | 50 | { |
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs index 6ef8815..7d9f935 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/SimulatorFeaturesModule.cs | |||
@@ -70,6 +70,7 @@ namespace OpenSim.Region.ClientStack.Linden | |||
70 | 70 | ||
71 | private string m_MapImageServerURL = string.Empty; | 71 | private string m_MapImageServerURL = string.Empty; |
72 | private string m_SearchURL = string.Empty; | 72 | private string m_SearchURL = string.Empty; |
73 | private bool m_ExportSupported = false; | ||
73 | 74 | ||
74 | #region ISharedRegionModule Members | 75 | #region ISharedRegionModule Members |
75 | 76 | ||
@@ -87,6 +88,8 @@ namespace OpenSim.Region.ClientStack.Linden | |||
87 | } | 88 | } |
88 | 89 | ||
89 | m_SearchURL = config.GetString("SearchServerURI", string.Empty); | 90 | m_SearchURL = config.GetString("SearchServerURI", string.Empty); |
91 | |||
92 | m_ExportSupported = config.GetBoolean("ExportSupported", m_ExportSupported); | ||
90 | } | 93 | } |
91 | 94 | ||
92 | AddDefaultFeatures(); | 95 | AddDefaultFeatures(); |
@@ -152,6 +155,9 @@ namespace OpenSim.Region.ClientStack.Linden | |||
152 | if (m_SearchURL != string.Empty) | 155 | if (m_SearchURL != string.Empty) |
153 | gridServicesMap["search"] = m_SearchURL; | 156 | gridServicesMap["search"] = m_SearchURL; |
154 | m_features["GridServices"] = gridServicesMap; | 157 | m_features["GridServices"] = gridServicesMap; |
158 | |||
159 | if (m_ExportSupported) | ||
160 | m_features["ExportSupported"] = true; | ||
155 | } | 161 | } |
156 | } | 162 | } |
157 | 163 | ||
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 7ea538c..110e50e 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -51,6 +51,7 @@ using RegionFlags = OpenMetaverse.RegionFlags; | |||
51 | using Nini.Config; | 51 | using Nini.Config; |
52 | 52 | ||
53 | using System.IO; | 53 | using System.IO; |
54 | using PermissionMask = OpenSim.Framework.PermissionMask; | ||
54 | 55 | ||
55 | namespace OpenSim.Region.ClientStack.LindenUDP | 56 | namespace OpenSim.Region.ClientStack.LindenUDP |
56 | { | 57 | { |
@@ -1808,7 +1809,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1808 | 1809 | ||
1809 | public void SendInventoryItemDetails(UUID ownerID, InventoryItemBase item) | 1810 | public void SendInventoryItemDetails(UUID ownerID, InventoryItemBase item) |
1810 | { | 1811 | { |
1811 | const uint FULL_MASK_PERMISSIONS = (uint)PermissionMask.All; | 1812 | // Fudge this value. It's only needed to make the CRC anyway |
1813 | const uint FULL_MASK_PERMISSIONS = (uint)0x7fffffff; | ||
1812 | 1814 | ||
1813 | FetchInventoryReplyPacket inventoryReply = (FetchInventoryReplyPacket)PacketPool.Instance.GetPacket(PacketType.FetchInventoryReply); | 1815 | FetchInventoryReplyPacket inventoryReply = (FetchInventoryReplyPacket)PacketPool.Instance.GetPacket(PacketType.FetchInventoryReply); |
1814 | // TODO: don't create new blocks if recycling an old packet | 1816 | // TODO: don't create new blocks if recycling an old packet |
@@ -2013,7 +2015,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
2013 | 2015 | ||
2014 | protected void SendBulkUpdateInventoryItem(InventoryItemBase item) | 2016 | protected void SendBulkUpdateInventoryItem(InventoryItemBase item) |
2015 | { | 2017 | { |
2016 | const uint FULL_MASK_PERMISSIONS = (uint)PermissionMask.All; | 2018 | const uint FULL_MASK_PERMISSIONS = (uint)0x7ffffff; |
2017 | 2019 | ||
2018 | BulkUpdateInventoryPacket bulkUpdate | 2020 | BulkUpdateInventoryPacket bulkUpdate |
2019 | = (BulkUpdateInventoryPacket)PacketPool.Instance.GetPacket(PacketType.BulkUpdateInventory); | 2021 | = (BulkUpdateInventoryPacket)PacketPool.Instance.GetPacket(PacketType.BulkUpdateInventory); |
@@ -2067,7 +2069,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
2067 | /// <see>IClientAPI.SendInventoryItemCreateUpdate(InventoryItemBase)</see> | 2069 | /// <see>IClientAPI.SendInventoryItemCreateUpdate(InventoryItemBase)</see> |
2068 | public void SendInventoryItemCreateUpdate(InventoryItemBase Item, uint callbackId) | 2070 | public void SendInventoryItemCreateUpdate(InventoryItemBase Item, uint callbackId) |
2069 | { | 2071 | { |
2070 | const uint FULL_MASK_PERMISSIONS = (uint)PermissionMask.All; | 2072 | const uint FULL_MASK_PERMISSIONS = (uint)0x7fffffff; |
2071 | 2073 | ||
2072 | UpdateCreateInventoryItemPacket InventoryReply | 2074 | UpdateCreateInventoryItemPacket InventoryReply |
2073 | = (UpdateCreateInventoryItemPacket)PacketPool.Instance.GetPacket( | 2075 | = (UpdateCreateInventoryItemPacket)PacketPool.Instance.GetPacket( |