Turn off edit beams when object is derezed while being edited. (mantis #6722)

TeleportWork
Diva Canto 2013-08-01 20:40:13 -07:00
parent d4c506e453
commit 07e4958b19
1 changed files with 6 additions and 0 deletions

View File

@ -1568,8 +1568,14 @@ namespace OpenSim.Region.Framework.Scenes
// Here's where you get them.
m_AgentControlFlags = flags;
m_headrotation = agentData.HeadRotation;
byte oldState = State;
State = agentData.State;
// We need to send this back to the client in order to stop the edit beams
if ((oldState & (uint)AgentState.Editing) != 0 && State == (uint)AgentState.None)
ControllingClient.SendAgentTerseUpdate(this);
PhysicsActor actor = PhysicsActor;
if (actor == null)
{