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/Region/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/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs index aacad98..3734e03 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs | |||
@@ -1219,13 +1219,19 @@ namespace OpenSim.Region.Framework.Scenes | |||
1219 | { | 1219 | { |
1220 | if (engine != null) | 1220 | if (engine != null) |
1221 | { | 1221 | { |
1222 | // m_log.DebugFormat( | ||
1223 | // "[PRIM INVENTORY]: Resuming script {0} {1} for {2}, OwnerChanged {3}", | ||
1224 | // item.Name, item.ItemID, item.OwnerID, item.OwnerChanged); | ||
1225 | |||
1226 | engine.ResumeScript(item.ItemID); | ||
1227 | |||
1222 | if (item.OwnerChanged) | 1228 | if (item.OwnerChanged) |
1223 | engine.PostScriptEvent(item.ItemID, "changed", new Object[] { (int)Changed.OWNER }); | 1229 | engine.PostScriptEvent(item.ItemID, "changed", new Object[] { (int)Changed.OWNER }); |
1230 | |||
1224 | item.OwnerChanged = false; | 1231 | item.OwnerChanged = false; |
1225 | engine.ResumeScript(item.ItemID); | ||
1226 | } | 1232 | } |
1227 | } | 1233 | } |
1228 | } | 1234 | } |
1229 | } | 1235 | } |
1230 | } | 1236 | } |
1231 | } | 1237 | } \ No newline at end of file |