From b664566b8f2384e68362c008b147be72db04f8ff Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Fri, 10 Apr 2009 05:13:02 +0000 Subject: * Fixes a bug in MRM scripting whereby the Touch flag is never enabled for OnTouch capable scripts. --- OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs index d6c3f7f..d726de7 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs @@ -67,6 +67,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule { if(!_OnTouchActive) { + GetSOP().Flags |= PrimFlags.Touch; _OnTouchActive = true; m_rootScene.EventManager.OnObjectGrab += EventManager_OnObjectGrab; } @@ -79,6 +80,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule if (_OnTouch == null) { + GetSOP().Flags &= ~PrimFlags.Touch; _OnTouchActive = false; m_rootScene.EventManager.OnObjectGrab -= EventManager_OnObjectGrab; } -- cgit v1.1