diff options
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 1a5e9d6..cf9dfee 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -2338,10 +2338,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2338 | { | 2338 | { |
2339 | ParentGroup.Scene.RemovePhysicalPrim(1); | 2339 | ParentGroup.Scene.RemovePhysicalPrim(1); |
2340 | 2340 | ||
2341 | Velocity = new Vector3(0, 0, 0); | 2341 | Stop(); |
2342 | Acceleration = new Vector3(0, 0, 0); | ||
2343 | AngularVelocity = new Vector3(0, 0, 0); | ||
2344 | APIDActive = false; | ||
2345 | 2342 | ||
2346 | if (pa.Phantom && !VolumeDetectActive) | 2343 | if (pa.Phantom && !VolumeDetectActive) |
2347 | { | 2344 | { |
@@ -4730,14 +4727,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
4730 | if ((SetPhantom && !UsePhysics && !SetVD) || ParentGroup.IsAttachment || PhysicsShapeType == (byte)PhysShapeType.none | 4727 | if ((SetPhantom && !UsePhysics && !SetVD) || ParentGroup.IsAttachment || PhysicsShapeType == (byte)PhysShapeType.none |
4731 | || (Shape.PathCurve == (byte)Extrusion.Flexible)) | 4728 | || (Shape.PathCurve == (byte)Extrusion.Flexible)) |
4732 | { | 4729 | { |
4730 | Stop(); | ||
4733 | if (pa != null) | 4731 | if (pa != null) |
4734 | { | 4732 | { |
4735 | if(wasUsingPhysics) | 4733 | if(wasUsingPhysics) |
4736 | ParentGroup.Scene.RemovePhysicalPrim(1); | 4734 | ParentGroup.Scene.RemovePhysicalPrim(1); |
4737 | RemoveFromPhysics(); | 4735 | RemoveFromPhysics(); |
4738 | } | 4736 | } |
4739 | |||
4740 | Stop(); | ||
4741 | } | 4737 | } |
4742 | 4738 | ||
4743 | else | 4739 | else |