From d386bfa1b6f9c166438c11f4a98adc38a68f8394 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 19 Aug 2016 21:21:59 +0100 Subject: [PATCH] on sog unlink loose the reference to the deleted physics actor --- OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 573cfe372b..b5dc19f847 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs @@ -3347,7 +3347,10 @@ namespace OpenSim.Region.Framework.Scenes // engine about the delink. Someday, linksets should be made first // class objects in the physics engine interface). if (linkPartPa != null) + { m_scene.PhysicsScene.RemovePrim(linkPartPa); + linkPart.PhysActor = null; + } // We need to reset the child part's position // ready for life as a separate object after being a part of another object