* [MRM] Added permission checks to MRM Events (ie, requires edit permission to bind to OnTouch)
parent
8621dc405e
commit
adae13cd18
|
@ -87,14 +87,17 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
||||||
{
|
{
|
||||||
add
|
add
|
||||||
{
|
{
|
||||||
if (!_OnTouchActive)
|
if (CanEdit())
|
||||||
{
|
{
|
||||||
GetSOP().Flags |= PrimFlags.Touch;
|
if (!_OnTouchActive)
|
||||||
_OnTouchActive = true;
|
{
|
||||||
m_rootScene.EventManager.OnObjectGrab += EventManager_OnObjectGrab;
|
GetSOP().Flags |= PrimFlags.Touch;
|
||||||
}
|
_OnTouchActive = true;
|
||||||
|
m_rootScene.EventManager.OnObjectGrab += EventManager_OnObjectGrab;
|
||||||
|
}
|
||||||
|
|
||||||
_OnTouch += value;
|
_OnTouch += value;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
remove
|
remove
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue