* Fixes a bug in MRM scripting whereby the Touch flag is never enabled for OnTouch capable scripts.
parent
b05a1aa4b7
commit
b664566b8f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue