From 6325fa515d92f9d425345cc81dbc576782f81d12 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Sat, 25 Sep 2010 00:51:40 +0100 Subject: Add UUID to physics prim name parameter so that diagnostic messages can be made more useful. If a separate UUID parameter is better for the future then this can be added later on. --- OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 2 +- OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes') diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index b655f39..5513584 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs @@ -1434,7 +1434,7 @@ namespace OpenSim.Region.Framework.Scenes part.PhysActor = m_scene.PhysicsScene.AddPrimShape( - part.Name, + string.Format("{0}/{1}", part.Name, part.UUID), pbs, part.AbsolutePosition, part.Scale, diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 95cd26f..a8e76e3 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs @@ -1534,7 +1534,7 @@ namespace OpenSim.Region.Framework.Scenes if (!isPhantom && !IsAttachment && !(Shape.PathCurve == (byte) Extrusion.Flexible)) { PhysActor = m_parentGroup.Scene.PhysicsScene.AddPrimShape( - Name, + string.Format("{0}/{1}", Name, UUID), Shape, AbsolutePosition, Scale, @@ -4368,7 +4368,7 @@ namespace OpenSim.Region.Framework.Scenes { // It's not phantom anymore. So make sure the physics engine get's knowledge of it PhysActor = m_parentGroup.Scene.PhysicsScene.AddPrimShape( - Name, + string.Format("{0}/{1}", Name, UUID), Shape, AbsolutePosition, Scale, -- cgit v1.1