From edc78defed18a0eb735097dc64ea5e0ed722caac Mon Sep 17 00:00:00 2001 From: Melanie Date: Sun, 26 Feb 2012 02:52:08 +0100 Subject: Zero force and torque on take so that items don't run away when rezzed --- .../CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'OpenSim/Region') 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 { if (objectGroup.KeyframeMotion != null) objectGroup.KeyframeMotion.Stop(); + objectGroup.RootPart.SetForce(Vector3.Zero); + objectGroup.RootPart.SetAngularImpulse(Vector3.Zero, false); objectGroup.KeyframeMotion = null; Vector3 inventoryStoredPosition = new Vector3 -- cgit v1.1