diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs index d6c3f7f1bf..d726de7fa7 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; }