From 867d50d14c1ad0ae1e885e163dfc4f2e9afc6749 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 4 Apr 2012 17:01:29 +0100 Subject: remove more merge artefacts --- OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index f091a91..83021b0 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs @@ -2186,18 +2186,11 @@ namespace OpenSim.Region.Framework.Scenes if (ParentID != 0 && ParentID != LocalId) { - ParentGroup.Scene.AddPhysicalPrim(1); + PhysicsActor parentPa = ParentGroup.RootPart.PhysActor; - pa.OnRequestTerseUpdate += PhysicsRequestingTerseUpdate; - pa.OnOutOfBounds += PhysicsOutOfBounds; - if (ParentID != 0 && ParentID != LocalId) + if (parentPa != null) { - PhysicsActor parentPa = ParentGroup.RootPart.PhysActor; - - if (parentPa != null) - { - pa.link(parentPa); - } + pa.link(parentPa); } } } -- cgit v1.1