* Fixes a bug in MRM scripting whereby the Touch flag is never enabled for OnTouch capable scripts.

0.6.5-rc1
Adam Frisby 2009-04-10 05:13:02 +00:00
parent b05a1aa4b7
commit b664566b8f
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}