From 1953a0f4e02f939f11879e826f99dd53bc9efce9 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 17 Sep 2014 13:36:39 +0100 Subject: Dont add to physics in a child update. It is missing several checks like sit. makeroot should to it --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes') diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index dba95c7..9d06c26 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -4268,15 +4268,17 @@ namespace OpenSim.Region.Framework.Scenes GodLevel = cAgent.GodLevel; SetAlwaysRun = cAgent.AlwaysRun; - bool isFlying = ((m_AgentControlFlags & AgentManager.ControlFlags.AGENT_CONTROL_FLY) != 0); Appearance = new AvatarAppearance(cAgent.Appearance); +/* + bool isFlying = ((m_AgentControlFlags & AgentManager.ControlFlags.AGENT_CONTROL_FLY) != 0); + if (PhysicsActor != null) { RemoveFromPhysicalScene(); AddToPhysicalScene(isFlying); } - +*/ try { lock (scriptedcontrols) -- cgit v1.1