diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 13 |
1 files 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 | |||
2186 | 2186 | ||
2187 | if (ParentID != 0 && ParentID != LocalId) | 2187 | if (ParentID != 0 && ParentID != LocalId) |
2188 | { | 2188 | { |
2189 | ParentGroup.Scene.AddPhysicalPrim(1); | 2189 | PhysicsActor parentPa = ParentGroup.RootPart.PhysActor; |
2190 | 2190 | ||
2191 | pa.OnRequestTerseUpdate += PhysicsRequestingTerseUpdate; | 2191 | if (parentPa != null) |
2192 | pa.OnOutOfBounds += PhysicsOutOfBounds; | ||
2193 | if (ParentID != 0 && ParentID != LocalId) | ||
2194 | { | 2192 | { |
2195 | PhysicsActor parentPa = ParentGroup.RootPart.PhysActor; | 2193 | pa.link(parentPa); |
2196 | |||
2197 | if (parentPa != null) | ||
2198 | { | ||
2199 | pa.link(parentPa); | ||
2200 | } | ||
2201 | } | 2194 | } |
2202 | } | 2195 | } |
2203 | } | 2196 | } |