Zero velocity when drag-copying

avinationmerge
Melanie 2012-03-04 00:06:07 +01:00
parent bfcba0a417
commit 6dc4a6dfb1
1 changed files with 2 additions and 0 deletions

View File

@ -1989,6 +1989,8 @@ namespace OpenSim.Region.Framework.Scenes
public void CopyRootPart(SceneObjectPart part, UUID cAgentID, UUID cGroupID, bool userExposed)
{
SetRootPart(part.Copy(m_scene.AllocateLocalId(), OwnerID, GroupID, 0, userExposed));
if (userExposed)
RootPart.Velocity = Vector3.Zero; // In case source is moving
}
public void ScriptSetPhysicsStatus(bool usePhysics)