* 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)
|
if(!_OnTouchActive)
|
||||||
{
|
{
|
||||||
|
GetSOP().Flags |= PrimFlags.Touch;
|
||||||
_OnTouchActive = true;
|
_OnTouchActive = true;
|
||||||
m_rootScene.EventManager.OnObjectGrab += EventManager_OnObjectGrab;
|
m_rootScene.EventManager.OnObjectGrab += EventManager_OnObjectGrab;
|
||||||
}
|
}
|
||||||
|
@ -79,6 +80,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
||||||
|
|
||||||
if (_OnTouch == null)
|
if (_OnTouch == null)
|
||||||
{
|
{
|
||||||
|
GetSOP().Flags &= ~PrimFlags.Touch;
|
||||||
_OnTouchActive = false;
|
_OnTouchActive = false;
|
||||||
m_rootScene.EventManager.OnObjectGrab -= EventManager_OnObjectGrab;
|
m_rootScene.EventManager.OnObjectGrab -= EventManager_OnObjectGrab;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue