aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
index 6bb00cb..f6c0ee3 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
@@ -1161,6 +1161,9 @@ namespace OpenSim.Region.Environment.Scenes
1161 1161
1162 if (PhysActor.IsPhysical) 1162 if (PhysActor.IsPhysical)
1163 { 1163 {
1164 if (!isNew)
1165 this.ParentGroup.m_scene.RemovePhysicalPrim(1);
1166
1164 PhysActor.OnRequestTerseUpdate -= PhysicsRequestingTerseUpdate; 1167 PhysActor.OnRequestTerseUpdate -= PhysicsRequestingTerseUpdate;
1165 PhysActor.OnOutOfBounds -= PhysicsOutOfBounds; 1168 PhysActor.OnOutOfBounds -= PhysicsOutOfBounds;
1166 } 1169 }
@@ -1184,6 +1187,8 @@ namespace OpenSim.Region.Environment.Scenes
1184 //RotationOffset.Y, RotationOffset.Z), UsePhysics); 1187 //RotationOffset.Y, RotationOffset.Z), UsePhysics);
1185 if (UsePhysics) 1188 if (UsePhysics)
1186 { 1189 {
1190 this.ParentGroup.m_scene.AddPhysicalPrim(1);
1191
1187 PhysActor.OnRequestTerseUpdate += PhysicsRequestingTerseUpdate; 1192 PhysActor.OnRequestTerseUpdate += PhysicsRequestingTerseUpdate;
1188 PhysActor.OnOutOfBounds += PhysicsOutOfBounds; 1193 PhysActor.OnOutOfBounds += PhysicsOutOfBounds;
1189 } 1194 }