mantis 8253: don't let attachments delete remove controls from viewers on crossings.

This commit is contained in:
UbitUmarov
2017-11-12 12:00:03 +00:00
parent f2b54c8cf9
commit 6546ea6da6
2 changed files with 4 additions and 10 deletions

View File

@@ -2288,13 +2288,6 @@ namespace OpenSim.Region.Framework.Scenes
}
}
if(gotCrossUpdate)
{
if(IgnoredControls != ScriptControlled.CONTROL_ZERO)
ControllingClient.SendTakeControls((int)IgnoredControls, false, true);
}
m_log.DebugFormat("[CompleteMovement] attachments: {0}ms", Util.EnvironmentTickCountSubtract(ts));
if (openChildAgents)
{
@@ -5685,7 +5678,6 @@ namespace OpenSim.Region.Framework.Scenes
{
IgnoredControls = ScriptControlled.CONTROL_ZERO;
obj.eventControls = (ScriptControlled)controls;
obj.ignoreControls = ScriptControlled.CONTROL_ZERO;
}
lock (scriptedcontrols)
@@ -5801,7 +5793,7 @@ namespace OpenSim.Region.Framework.Scenes
{
if (scriptedcontrols.TryGetValue(Script_item_UUID, out takecontrols))
{
ScriptControlled sctc = takecontrols.eventControls;
ScriptControlled sctc = takecontrols.eventControls;
ControllingClient.SendTakeControls((int)sctc, false, false);
ControllingClient.SendTakeControls((int)sctc, true, false);