aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorUbitUmarov2016-08-29 12:18:01 +0100
committerUbitUmarov2016-08-29 12:18:01 +0100
commitd96c05a1219a60183f5076f6c6f0bdd320611fd5 (patch)
tree4e0fbec610b11574bde78b2eb6556c9721f6b7c4 /OpenSim/Region/ScriptEngine
parentmantis 8006: AttachmentModule triggered OnAttach by SOG xengine expects by SOP (diff)
downloadopensim-SC_OLD-d96c05a1219a60183f5076f6c6f0bdd320611fd5.zip
opensim-SC_OLD-d96c05a1219a60183f5076f6c6f0bdd320611fd5.tar.gz
opensim-SC_OLD-d96c05a1219a60183f5076f6c6f0bdd320611fd5.tar.bz2
opensim-SC_OLD-d96c05a1219a60183f5076f6c6f0bdd320611fd5.tar.xz
change my previus fix, change xengine to expect SOG and not attachments module, this way not breaking other script engines or modules out there for no valid reason
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/EventManager.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs
index f1b1e66..301eada 100644
--- a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs
@@ -408,10 +408,17 @@ namespace OpenSim.Region.ScriptEngine.XEngine
408 408
409 public void attach(uint localID, UUID itemID, UUID avatar) 409 public void attach(uint localID, UUID itemID, UUID avatar)
410 { 410 {
411 myScriptEngine.PostObjectEvent(localID, new EventParams( 411 SceneObjectGroup grp = myScriptEngine.World.GetSceneObjectGroup(localID);
412 if(grp == null)
413 return;
414
415 foreach(SceneObjectPart part in grp.Parts)
416 {
417 myScriptEngine.PostObjectEvent(part.LocalId, new EventParams(
412 "attach",new object[] { 418 "attach",new object[] {
413 new LSL_Types.LSLString(avatar.ToString()) }, 419 new LSL_Types.LSLString(avatar.ToString()) },
414 new DetectParams[0])); 420 new DetectParams[0]));
421 }
415 } 422 }
416 423
417 // dataserver: not handled here 424 // dataserver: not handled here