mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
* Fixes a bug in MRM scripting whereby the Touch flag is never enabled for OnTouch capable scripts.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user