diff options
author | Melanie Thielker | 2016-04-29 21:23:32 +0200 |
---|---|---|
committer | Melanie Thielker | 2016-04-29 21:23:32 +0200 |
commit | d42de53ddaeae154f17bbc240bdfdf6a349ea860 (patch) | |
tree | 2c5f3a9347a843251f61d633d0fa40e2275dc3d9 /OpenSim/Region/Framework | |
parent | Prevent "Object->Take" from working on attachments. (diff) | |
download | opensim-SC-d42de53ddaeae154f17bbc240bdfdf6a349ea860.zip opensim-SC-d42de53ddaeae154f17bbc240bdfdf6a349ea860.tar.gz opensim-SC-d42de53ddaeae154f17bbc240bdfdf6a349ea860.tar.bz2 opensim-SC-d42de53ddaeae154f17bbc240bdfdf6a349ea860.tar.xz |
Allow default permissions from the viewer to be applied to uploaded objects.
Make inventory items reflect coorect permissions immediately unstead of after relog
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/EventManager.cs | 6 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs index 0a6bca4..8683599 100644 --- a/OpenSim/Region/Framework/Scenes/EventManager.cs +++ b/OpenSim/Region/Framework/Scenes/EventManager.cs | |||
@@ -748,7 +748,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
748 | public event OnIncomingSceneObjectDelegate OnIncomingSceneObject; | 748 | public event OnIncomingSceneObjectDelegate OnIncomingSceneObject; |
749 | public delegate void OnIncomingSceneObjectDelegate(SceneObjectGroup so); | 749 | public delegate void OnIncomingSceneObjectDelegate(SceneObjectGroup so); |
750 | 750 | ||
751 | public delegate void NewInventoryItemUploadComplete(UUID avatarID, AssetType type, UUID assetID, string name, int userlevel); | 751 | public delegate void NewInventoryItemUploadComplete(InventoryItemBase item, int userlevel); |
752 | 752 | ||
753 | public event NewInventoryItemUploadComplete OnNewInventoryItemUploadComplete; | 753 | public event NewInventoryItemUploadComplete OnNewInventoryItemUploadComplete; |
754 | 754 | ||
@@ -2262,7 +2262,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2262 | } | 2262 | } |
2263 | } | 2263 | } |
2264 | 2264 | ||
2265 | public void TriggerOnNewInventoryItemUploadComplete(UUID agentID, AssetType type, UUID AssetID, String AssetName, int userlevel) | 2265 | public void TriggerOnNewInventoryItemUploadComplete(InventoryItemBase item, int userlevel) |
2266 | { | 2266 | { |
2267 | NewInventoryItemUploadComplete handlerNewInventoryItemUpdateComplete = OnNewInventoryItemUploadComplete; | 2267 | NewInventoryItemUploadComplete handlerNewInventoryItemUpdateComplete = OnNewInventoryItemUploadComplete; |
2268 | if (handlerNewInventoryItemUpdateComplete != null) | 2268 | if (handlerNewInventoryItemUpdateComplete != null) |
@@ -2271,7 +2271,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2271 | { | 2271 | { |
2272 | try | 2272 | try |
2273 | { | 2273 | { |
2274 | d(agentID, type, AssetID, AssetName, userlevel); | 2274 | d(item, userlevel); |
2275 | } | 2275 | } |
2276 | catch (Exception e) | 2276 | catch (Exception e) |
2277 | { | 2277 | { |
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index 1910a78..a28737e 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -149,7 +149,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
149 | userlevel = 1; | 149 | userlevel = 1; |
150 | } | 150 | } |
151 | if (trigger) | 151 | if (trigger) |
152 | EventManager.TriggerOnNewInventoryItemUploadComplete(item.Owner, (AssetType)item.AssetType, item.AssetID, item.Name, userlevel); | 152 | EventManager.TriggerOnNewInventoryItemUploadComplete(item, userlevel); |
153 | 153 | ||
154 | return true; | 154 | return true; |
155 | } | 155 | } |
@@ -191,7 +191,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
191 | userlevel = 1; | 191 | userlevel = 1; |
192 | } | 192 | } |
193 | if (trigger) | 193 | if (trigger) |
194 | EventManager.TriggerOnNewInventoryItemUploadComplete(item.Owner, (AssetType)item.AssetType, item.AssetID, item.Name, userlevel); | 194 | EventManager.TriggerOnNewInventoryItemUploadComplete(item, userlevel); |
195 | 195 | ||
196 | if (originalFolder != UUID.Zero) | 196 | if (originalFolder != UUID.Zero) |
197 | { | 197 | { |