aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs2
1 files changed, 2 insertions, 0 deletions
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
67 { 67 {
68 if(!_OnTouchActive) 68 if(!_OnTouchActive)
69 { 69 {
70 GetSOP().Flags |= PrimFlags.Touch;
70 _OnTouchActive = true; 71 _OnTouchActive = true;
71 m_rootScene.EventManager.OnObjectGrab += EventManager_OnObjectGrab; 72 m_rootScene.EventManager.OnObjectGrab += EventManager_OnObjectGrab;
72 } 73 }
@@ -79,6 +80,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
79 80
80 if (_OnTouch == null) 81 if (_OnTouch == null)
81 { 82 {
83 GetSOP().Flags &= ~PrimFlags.Touch;
82 _OnTouchActive = false; 84 _OnTouchActive = false;
83 m_rootScene.EventManager.OnObjectGrab -= EventManager_OnObjectGrab; 85 m_rootScene.EventManager.OnObjectGrab -= EventManager_OnObjectGrab;
84 } 86 }