mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 01:35:46 +08:00
Implement STATUS_BLOCK_GRAB_OBJECT in llSetStatus()/llGetStatus() and correct effect of STATUS_BLOCK_GRAB
As per http://wiki.secondlife.com/wiki/LlSetStatus Setting STATUS_BLOCK_GRAB_OBJECT prevents or allows move of a physical linkset by grab on any prim. Setting STATUS_BLOCK_GRAB prevents or allows move of a physical linkset by grab on a particular prim. Previously, setting STATUS_BLOCK_GRAB would prevent drag via all prims of the linkset.
This commit is contained in:
@@ -186,7 +186,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
public bool RETURN_AT_EDGE;
|
||||
|
||||
public bool BlockGrab;
|
||||
public bool BlockGrab { get; set; }
|
||||
|
||||
public bool StatusSandbox;
|
||||
|
||||
@@ -2079,22 +2079,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
ParentGroup.RootPart.RETURN_AT_EDGE = p;
|
||||
}
|
||||
|
||||
public bool GetBlockGrab()
|
||||
{
|
||||
if (ParentGroup.IsDeleted)
|
||||
return false;
|
||||
|
||||
return ParentGroup.RootPart.BlockGrab;
|
||||
}
|
||||
|
||||
public void SetBlockGrab(bool p)
|
||||
{
|
||||
if (ParentGroup.IsDeleted)
|
||||
return;
|
||||
|
||||
ParentGroup.RootPart.BlockGrab = p;
|
||||
}
|
||||
|
||||
public void SetStatusSandbox(bool p)
|
||||
{
|
||||
if (ParentGroup.IsDeleted)
|
||||
|
||||
Reference in New Issue
Block a user