diff options
author | Justin Clark-Casey (justincc) | 2012-05-05 00:29:14 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-05-05 00:29:14 +0100 |
commit | 01b00ad0d57d828028379875a382965b44073497 (patch) | |
tree | 084b520e6963092331ce4f2bfd6d8b50a7dc3360 /OpenSim/Framework | |
parent | Use the more efficient HashSet instead of List for FlotasmAssetCache.m_Curren... (diff) | |
download | opensim-SC_OLD-01b00ad0d57d828028379875a382965b44073497.zip opensim-SC_OLD-01b00ad0d57d828028379875a382965b44073497.tar.gz opensim-SC_OLD-01b00ad0d57d828028379875a382965b44073497.tar.bz2 opensim-SC_OLD-01b00ad0d57d828028379875a382965b44073497.tar.xz |
Fire the scripting changed event with CHANGED_OWNER when an object that has changed owners is rezzed.
This needs to occur after the script is resumed rather than before, when the event is just dropped.
Addresses http://opensimulator.org/mantis/view.php?id=5890 and http://opensimulator.org/mantis/view.php?id=5952
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/TaskInventoryItem.cs | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/OpenSim/Framework/TaskInventoryItem.cs b/OpenSim/Framework/TaskInventoryItem.cs index d4bbbfb..362d365 100644 --- a/OpenSim/Framework/TaskInventoryItem.cs +++ b/OpenSim/Framework/TaskInventoryItem.cs | |||
@@ -26,6 +26,8 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Reflection; | ||
30 | using log4net; | ||
29 | using OpenMetaverse; | 31 | using OpenMetaverse; |
30 | 32 | ||
31 | namespace OpenSim.Framework | 33 | namespace OpenSim.Framework |
@@ -35,6 +37,8 @@ namespace OpenSim.Framework | |||
35 | /// </summary> | 37 | /// </summary> |
36 | public class TaskInventoryItem : ICloneable | 38 | public class TaskInventoryItem : ICloneable |
37 | { | 39 | { |
40 | // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||
41 | |||
38 | /// <summary> | 42 | /// <summary> |
39 | /// XXX This should really be factored out into some constants class. | 43 | /// XXX This should really be factored out into some constants class. |
40 | /// </summary> | 44 | /// </summary> |
@@ -331,12 +335,18 @@ namespace OpenSim.Framework | |||
331 | } | 335 | } |
332 | } | 336 | } |
333 | 337 | ||
334 | public bool OwnerChanged { | 338 | public bool OwnerChanged |
335 | get { | 339 | { |
340 | get | ||
341 | { | ||
336 | return _ownerChanged; | 342 | return _ownerChanged; |
337 | } | 343 | } |
338 | set { | 344 | set |
345 | { | ||
339 | _ownerChanged = value; | 346 | _ownerChanged = value; |
347 | // m_log.DebugFormat( | ||
348 | // "[TASK INVENTORY ITEM]: Owner changed set {0} for {1} {2} owned by {3}", | ||
349 | // _ownerChanged, Name, ItemID, OwnerID); | ||
340 | } | 350 | } |
341 | } | 351 | } |
342 | 352 | ||