See that if controls are taken, those are released before taking new ones

avinationmerge
Melanie 2012-07-29 15:10:12 +02:00
parent 9163cdd7c1
commit 729046e1ad
1 changed files with 3 additions and 0 deletions

View File

@ -3816,6 +3816,9 @@ namespace OpenSim.Region.Framework.Scenes
if (p == null) if (p == null)
return; return;
ControllingClient.SendTakeControls(controls, false, false);
ControllingClient.SendTakeControls(controls, true, false);
ScriptControllers obj = new ScriptControllers(); ScriptControllers obj = new ScriptControllers();
obj.ignoreControls = ScriptControlled.CONTROL_ZERO; obj.ignoreControls = ScriptControlled.CONTROL_ZERO;
obj.eventControls = ScriptControlled.CONTROL_ZERO; obj.eventControls = ScriptControlled.CONTROL_ZERO;