diff options
author | Melanie | 2010-11-04 10:37:39 +0100 |
---|---|---|
committer | Melanie | 2010-11-04 10:37:39 +0100 |
commit | b8924167e004cba5e9b426cbb0b2619816ee6858 (patch) | |
tree | 2155938fc1f5f676b596f2e0553ac3c14a51b1f6 /OpenSim | |
parent | Fix playing sound from HUDs (diff) | |
download | opensim-SC-b8924167e004cba5e9b426cbb0b2619816ee6858.zip opensim-SC-b8924167e004cba5e9b426cbb0b2619816ee6858.tar.gz opensim-SC-b8924167e004cba5e9b426cbb0b2619816ee6858.tar.bz2 opensim-SC-b8924167e004cba5e9b426cbb0b2619816ee6858.tar.xz |
Fix creation of a duplicate physics actor on chained drag-copy operations,
the main cause for "ghost prims"
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index c870797..93d223e 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -1704,23 +1704,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
1704 | if (userExposed) | 1704 | if (userExposed) |
1705 | dupe.m_rootPart.TrimPermissions(); | 1705 | dupe.m_rootPart.TrimPermissions(); |
1706 | 1706 | ||
1707 | /// may need to create a new Physics actor. | ||
1708 | if (dupe.RootPart.PhysActor != null && userExposed) | ||
1709 | { | ||
1710 | PrimitiveBaseShape pbs = dupe.RootPart.Shape; | ||
1711 | |||
1712 | dupe.RootPart.PhysActor = m_scene.PhysicsScene.AddPrimShape( | ||
1713 | dupe.RootPart.Name, | ||
1714 | pbs, | ||
1715 | dupe.RootPart.AbsolutePosition, | ||
1716 | dupe.RootPart.Scale, | ||
1717 | dupe.RootPart.RotationOffset, | ||
1718 | dupe.RootPart.PhysActor.IsPhysical); | ||
1719 | |||
1720 | dupe.RootPart.PhysActor.LocalID = dupe.RootPart.LocalId; | ||
1721 | dupe.RootPart.DoPhysicsPropertyUpdate(dupe.RootPart.PhysActor.IsPhysical, true); | ||
1722 | } | ||
1723 | |||
1724 | List<SceneObjectPart> partList = new List<SceneObjectPart>(m_parts.GetArray()); | 1707 | List<SceneObjectPart> partList = new List<SceneObjectPart>(m_parts.GetArray()); |
1725 | 1708 | ||
1726 | partList.Sort(delegate(SceneObjectPart p1, SceneObjectPart p2) | 1709 | partList.Sort(delegate(SceneObjectPart p1, SceneObjectPart p2) |