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

avinationmerge
Melanie 2012-02-26 02:52:08 +01:00
parent e9120890a2
commit edc78defed
1 changed files with 2 additions and 0 deletions

View File

@ -357,6 +357,8 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
{ {
if (objectGroup.KeyframeMotion != null) if (objectGroup.KeyframeMotion != null)
objectGroup.KeyframeMotion.Stop(); objectGroup.KeyframeMotion.Stop();
objectGroup.RootPart.SetForce(Vector3.Zero);
objectGroup.RootPart.SetAngularImpulse(Vector3.Zero, false);
objectGroup.KeyframeMotion = null; objectGroup.KeyframeMotion = null;
Vector3 inventoryStoredPosition = new Vector3 Vector3 inventoryStoredPosition = new Vector3