From ba1d9ca26b7b5e865824e16dc8930e85ef27eb54 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 7 Nov 2008 22:08:58 +0000 Subject: * refactor: cleanup AllocateLocalPrimId() a bit more --- .../Modules/ContentManagementSystem/PointMetaEntity.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'OpenSim/Region/Environment/Modules/ContentManagementSystem/PointMetaEntity.cs') diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/PointMetaEntity.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/PointMetaEntity.cs index 81746c5..bf7d944 100644 --- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/PointMetaEntity.cs +++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/PointMetaEntity.cs @@ -56,17 +56,17 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement { #region Constructors - public PointMetaEntity(Scene scene, uint LocalId, Vector3 groupPos, float transparency) + public PointMetaEntity(Scene scene, Vector3 groupPos, float transparency) : base() { - CreatePointEntity(scene, UUID.Random(), LocalId, groupPos); + CreatePointEntity(scene, UUID.Random(), groupPos); SetPartTransparency(m_Entity.RootPart, transparency); } - public PointMetaEntity(Scene scene, UUID uuid, uint LocalId, Vector3 groupPos, float transparency) + public PointMetaEntity(Scene scene, UUID uuid, Vector3 groupPos, float transparency) : base() { - CreatePointEntity(scene, uuid, LocalId, groupPos); + CreatePointEntity(scene, uuid, groupPos); SetPartTransparency(m_Entity.RootPart, transparency); } @@ -74,7 +74,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement #region Private Methods - private void CreatePointEntity(Scene scene, UUID uuid, uint LocalId, Vector3 groupPos) + private void CreatePointEntity(Scene scene, UUID uuid, Vector3 groupPos) { SceneObjectGroup x = new SceneObjectGroup(); SceneObjectPart y = new SceneObjectPart(); @@ -88,8 +88,6 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement y.LastOwnerID = UUID.Zero; y.UUID = uuid; - y.LocalId = LocalId; - y.Shape = PrimitiveBaseShape.CreateBox(); y.Scale = new Vector3(0.01f,0.01f,0.01f); y.LastOwnerID = UUID.Zero; -- cgit v1.1