diff options
author | Melanie | 2012-02-26 02:52:08 +0100 |
---|---|---|
committer | Melanie | 2012-02-26 02:52:08 +0100 |
commit | edc78defed18a0eb735097dc64ea5e0ed722caac (patch) | |
tree | 913d153d8a420e6da811068f3158f7b9799bb7e4 /OpenSim/Region/CoreModules/Framework | |
parent | Merge branch 'ubitwork' (diff) | |
download | opensim-SC-edc78defed18a0eb735097dc64ea5e0ed722caac.zip opensim-SC-edc78defed18a0eb735097dc64ea5e0ed722caac.tar.gz opensim-SC-edc78defed18a0eb735097dc64ea5e0ed722caac.tar.bz2 opensim-SC-edc78defed18a0eb735097dc64ea5e0ed722caac.tar.xz |
Zero force and torque on take so that items don't run away when rezzed
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs index 26650a5..098123a 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | |||
@@ -357,6 +357,8 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
357 | { | 357 | { |
358 | if (objectGroup.KeyframeMotion != null) | 358 | if (objectGroup.KeyframeMotion != null) |
359 | objectGroup.KeyframeMotion.Stop(); | 359 | objectGroup.KeyframeMotion.Stop(); |
360 | objectGroup.RootPart.SetForce(Vector3.Zero); | ||
361 | objectGroup.RootPart.SetAngularImpulse(Vector3.Zero, false); | ||
360 | objectGroup.KeyframeMotion = null; | 362 | objectGroup.KeyframeMotion = null; |
361 | 363 | ||
362 | Vector3 inventoryStoredPosition = new Vector3 | 364 | Vector3 inventoryStoredPosition = new Vector3 |