clear script controls on crossing (untested)(possible should be done
elsewhere/othe way)avinationmerge
parent
b6af41ec11
commit
43cf184603
|
@ -761,6 +761,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
{
|
||||
if (agent.ParentUUID != UUID.Zero)
|
||||
{
|
||||
agent.ClearControls();
|
||||
agent.ParentPart = null;
|
||||
// agent.ParentPosition = Vector3.Zero;
|
||||
// agent.ParentUUID = UUID.Zero;
|
||||
|
|
|
@ -4512,6 +4512,15 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
ControllingClient.SendTakeControls(int.MaxValue, false, false);
|
||||
}
|
||||
|
||||
public void ClearControls()
|
||||
{
|
||||
IgnoredControls = ScriptControlled.CONTROL_ZERO;
|
||||
lock (scriptedcontrols)
|
||||
{
|
||||
scriptedcontrols.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
private void UnRegisterSeatControls(UUID obj)
|
||||
{
|
||||
List<UUID> takers = new List<UUID>();
|
||||
|
|
Loading…
Reference in New Issue