Dont add to physics in a child update. It is missing several checks like

sit. makeroot should to it
avinationmerge
UbitUmarov 2014-09-17 13:36:39 +01:00
parent affcdcce8b
commit 1953a0f4e0
1 changed files with 4 additions and 2 deletions

View File

@ -4268,15 +4268,17 @@ namespace OpenSim.Region.Framework.Scenes
GodLevel = cAgent.GodLevel; GodLevel = cAgent.GodLevel;
SetAlwaysRun = cAgent.AlwaysRun; SetAlwaysRun = cAgent.AlwaysRun;
bool isFlying = ((m_AgentControlFlags & AgentManager.ControlFlags.AGENT_CONTROL_FLY) != 0);
Appearance = new AvatarAppearance(cAgent.Appearance); Appearance = new AvatarAppearance(cAgent.Appearance);
/*
bool isFlying = ((m_AgentControlFlags & AgentManager.ControlFlags.AGENT_CONTROL_FLY) != 0);
if (PhysicsActor != null) if (PhysicsActor != null)
{ {
RemoveFromPhysicalScene(); RemoveFromPhysicalScene();
AddToPhysicalScene(isFlying); AddToPhysicalScene(isFlying);
} }
*/
try try
{ {
lock (scriptedcontrols) lock (scriptedcontrols)