diff options
author | Melanie Thielker | 2009-02-19 03:09:56 +0000 |
---|---|---|
committer | Melanie Thielker | 2009-02-19 03:09:56 +0000 |
commit | 863556f2cc545c56599aab9d28373aa4ed83288d (patch) | |
tree | 37ede97ac7497333690dfa23e9a1033bfaab59a6 /OpenSim/Region/Framework | |
parent | Mantis#3188. Thank you kindly, BlueWall, for a patch that: (diff) | |
download | opensim-SC_OLD-863556f2cc545c56599aab9d28373aa4ed83288d.zip opensim-SC_OLD-863556f2cc545c56599aab9d28373aa4ed83288d.tar.gz opensim-SC_OLD-863556f2cc545c56599aab9d28373aa4ed83288d.tar.bz2 opensim-SC_OLD-863556f2cc545c56599aab9d28373aa4ed83288d.tar.xz |
Thank you, Snowdrop, for a patch that makes the callback ID parameter
usable. Applied with formatting changes, please don't introduce
K&R style indentations into OpenSim
Fixes Mantis #3190
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 13 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 2 |
2 files changed, 8 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index 2800e9e..f5d7b32 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -140,7 +140,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
140 | if (userInfo != null) | 140 | if (userInfo != null) |
141 | { | 141 | { |
142 | AddInventoryItem(remoteClient.AgentId, item); | 142 | AddInventoryItem(remoteClient.AgentId, item); |
143 | remoteClient.SendInventoryItemCreateUpdate(item); | 143 | remoteClient.SendInventoryItemCreateUpdate(item, 0); |
144 | } | 144 | } |
145 | else | 145 | else |
146 | { | 146 | { |
@@ -846,7 +846,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
846 | item.CreationDate = creationDate; | 846 | item.CreationDate = creationDate; |
847 | 847 | ||
848 | userInfo.AddItem(item); | 848 | userInfo.AddItem(item); |
849 | remoteClient.SendInventoryItemCreateUpdate(item); | 849 | remoteClient.SendInventoryItemCreateUpdate(item, callbackID); |
850 | } | 850 | } |
851 | else | 851 | else |
852 | { | 852 | { |
@@ -1379,6 +1379,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1379 | 1379 | ||
1380 | if (part != null) | 1380 | if (part != null) |
1381 | { | 1381 | { |
1382 | |||
1382 | TaskInventoryItem currentItem = part.Inventory.GetInventoryItem(itemID); | 1383 | TaskInventoryItem currentItem = part.Inventory.GetInventoryItem(itemID); |
1383 | bool allowInventoryDrop = (part.GetEffectiveObjectFlags() | 1384 | bool allowInventoryDrop = (part.GetEffectiveObjectFlags() |
1384 | & (uint)PrimFlags.AllowInventoryDrop) != 0; | 1385 | & (uint)PrimFlags.AllowInventoryDrop) != 0; |
@@ -2003,14 +2004,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
2003 | 2004 | ||
2004 | if (remoteClient != null && item.Owner == remoteClient.AgentId) | 2005 | if (remoteClient != null && item.Owner == remoteClient.AgentId) |
2005 | { | 2006 | { |
2006 | remoteClient.SendInventoryItemCreateUpdate(item); | 2007 | remoteClient.SendInventoryItemCreateUpdate(item, 0); |
2007 | } | 2008 | } |
2008 | else | 2009 | else |
2009 | { | 2010 | { |
2010 | ScenePresence notifyUser = GetScenePresence(item.Owner); | 2011 | ScenePresence notifyUser = GetScenePresence(item.Owner); |
2011 | if (notifyUser != null) | 2012 | if (notifyUser != null) |
2012 | { | 2013 | { |
2013 | notifyUser.ControllingClient.SendInventoryItemCreateUpdate(item); | 2014 | notifyUser.ControllingClient.SendInventoryItemCreateUpdate(item, 0); |
2014 | } | 2015 | } |
2015 | } | 2016 | } |
2016 | } | 2017 | } |
@@ -2092,7 +2093,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2092 | // this gets called when the agent loggs off! | 2093 | // this gets called when the agent loggs off! |
2093 | if (remoteClient != null) | 2094 | if (remoteClient != null) |
2094 | { | 2095 | { |
2095 | remoteClient.SendInventoryItemCreateUpdate(item); | 2096 | remoteClient.SendInventoryItemCreateUpdate(item, 0); |
2096 | } | 2097 | } |
2097 | } | 2098 | } |
2098 | } | 2099 | } |
@@ -2151,7 +2152,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2151 | grp.SetFromAssetID(item.ID); | 2152 | grp.SetFromAssetID(item.ID); |
2152 | 2153 | ||
2153 | userInfo.AddItem(item); | 2154 | userInfo.AddItem(item); |
2154 | remoteClient.SendInventoryItemCreateUpdate(item); | 2155 | remoteClient.SendInventoryItemCreateUpdate(item, 0); |
2155 | 2156 | ||
2156 | itemID = item.ID; | 2157 | itemID = item.ID; |
2157 | return item.AssetID; | 2158 | return item.AssetID; |
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 1d2f37a..23c4478 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -3581,7 +3581,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3581 | item.CreationDate = Util.UnixTimeSinceEpoch(); | 3581 | item.CreationDate = Util.UnixTimeSinceEpoch(); |
3582 | 3582 | ||
3583 | userInfo.AddItem(item); | 3583 | userInfo.AddItem(item); |
3584 | remoteClient.SendInventoryItemCreateUpdate(item); | 3584 | remoteClient.SendInventoryItemCreateUpdate(item, 0); |
3585 | } | 3585 | } |
3586 | else | 3586 | else |
3587 | { | 3587 | { |