From d386bfa1b6f9c166438c11f4a98adc38a68f8394 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 19 Aug 2016 21:21:59 +0100 Subject: on sog unlink loose the reference to the deleted physics actor --- OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 573cfe3..b5dc19f 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 -- cgit v1.1