Zero force and torque on take so that items don't run away when rezzed

This commit is contained in:
Melanie
2012-02-26 02:52:08 +01:00
parent e9120890a2
commit edc78defed

View File

@@ -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