aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
authorMic Bowman2011-06-15 11:31:32 -0700
committerMic Bowman2011-06-15 11:31:32 -0700
commitad84728aba1ea5efe0d237c89e1578657e6d8288 (patch)
treec73288cf710167ec00bf5dbcf71a26a4eec3d1d8 /OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
parentAdd the PhysActor to the correct SOP when duplicating a physical (diff)
downloadopensim-SC-ad84728aba1ea5efe0d237c89e1578657e6d8288.zip
opensim-SC-ad84728aba1ea5efe0d237c89e1578657e6d8288.tar.gz
opensim-SC-ad84728aba1ea5efe0d237c89e1578657e6d8288.tar.bz2
opensim-SC-ad84728aba1ea5efe0d237c89e1578657e6d8288.tar.xz
Add localID to physical object creation functions.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index f745169..42ac9aa 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -1467,6 +1467,7 @@ namespace OpenSim.Region.Framework.Scenes
1467 1467
1468 newPart.PhysActor 1468 newPart.PhysActor
1469 = m_scene.PhysicsScene.AddPrimShape( 1469 = m_scene.PhysicsScene.AddPrimShape(
1470 part.LocalId,
1470 string.Format("{0}/{1}", part.Name, part.UUID), 1471 string.Format("{0}/{1}", part.Name, part.UUID),
1471 pbs, 1472 pbs,
1472 part.AbsolutePosition, 1473 part.AbsolutePosition,
@@ -1474,7 +1475,6 @@ namespace OpenSim.Region.Framework.Scenes
1474 part.RotationOffset, 1475 part.RotationOffset,
1475 part.PhysActor.IsPhysical); 1476 part.PhysActor.IsPhysical);
1476 1477
1477 newPart.PhysActor.LocalID = part.LocalId;
1478 newPart.DoPhysicsPropertyUpdate(part.PhysActor.IsPhysical, true); 1478 newPart.DoPhysicsPropertyUpdate(part.PhysActor.IsPhysical, true);
1479 } 1479 }
1480 } 1480 }