mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
* This updates adds locking capability. Thanks, lbsa71 for pointing out my bitmasking error of the objectflags! It's still a little bit wonky when you check the checkbox, however it 'takes' and doesn't break anything.
This commit is contained in:
@@ -768,6 +768,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
group.GrabMovement(offset, pos, remoteClient);
|
||||
}
|
||||
group.SendGroupTerseUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
/// since the group's last persistent backup
|
||||
/// </summary>
|
||||
public bool HasGroupChanged = false;
|
||||
private bool m_locked = false;
|
||||
|
||||
|
||||
private LLVector3 lastPhysGroupPos;
|
||||
private LLQuaternion lastPhysGroupRot;
|
||||
@@ -1225,15 +1225,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
Children.Values.CopyTo(partArray, 0);
|
||||
return partArray;
|
||||
}
|
||||
public bool GetLocked()
|
||||
{
|
||||
return m_locked;
|
||||
}
|
||||
public void SetLocked(bool val)
|
||||
{
|
||||
m_locked = val;
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
||||
@@ -1620,13 +1620,14 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
if (addRemTF == (byte)0)
|
||||
{
|
||||
m_parentGroup.SetLocked(true);
|
||||
//OwnerMask &= ~mask;
|
||||
//m_parentGroup.SetLocked(true);
|
||||
//PermissionMask.
|
||||
OwnerMask &= ~mask;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_parentGroup.SetLocked(false);
|
||||
//OwnerMask |= mask;
|
||||
//m_parentGroup.SetLocked(false);
|
||||
OwnerMask |= mask;
|
||||
}
|
||||
SendFullUpdateToAllClients();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user