diff options
author | Justin Clarke Casey | 2008-11-07 22:08:58 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-11-07 22:08:58 +0000 |
commit | ba1d9ca26b7b5e865824e16dc8930e85ef27eb54 (patch) | |
tree | f294fd0129360fef926a7ebd610adf4b7b813afa /OpenSim/Region/Environment/Modules/ContentManagementSystem/PointMetaEntity.cs | |
parent | * Rename PrimIDAllocate() to more effectively convey what it does, and put th... (diff) | |
download | opensim-SC-ba1d9ca26b7b5e865824e16dc8930e85ef27eb54.zip opensim-SC-ba1d9ca26b7b5e865824e16dc8930e85ef27eb54.tar.gz opensim-SC-ba1d9ca26b7b5e865824e16dc8930e85ef27eb54.tar.bz2 opensim-SC-ba1d9ca26b7b5e865824e16dc8930e85ef27eb54.tar.xz |
* refactor: cleanup AllocateLocalPrimId() a bit more
Diffstat (limited to 'OpenSim/Region/Environment/Modules/ContentManagementSystem/PointMetaEntity.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/ContentManagementSystem/PointMetaEntity.cs | 12 |
1 files changed, 5 insertions, 7 deletions
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 | |||
56 | { | 56 | { |
57 | #region Constructors | 57 | #region Constructors |
58 | 58 | ||
59 | public PointMetaEntity(Scene scene, uint LocalId, Vector3 groupPos, float transparency) | 59 | public PointMetaEntity(Scene scene, Vector3 groupPos, float transparency) |
60 | : base() | 60 | : base() |
61 | { | 61 | { |
62 | CreatePointEntity(scene, UUID.Random(), LocalId, groupPos); | 62 | CreatePointEntity(scene, UUID.Random(), groupPos); |
63 | SetPartTransparency(m_Entity.RootPart, transparency); | 63 | SetPartTransparency(m_Entity.RootPart, transparency); |
64 | } | 64 | } |
65 | 65 | ||
66 | public PointMetaEntity(Scene scene, UUID uuid, uint LocalId, Vector3 groupPos, float transparency) | 66 | public PointMetaEntity(Scene scene, UUID uuid, Vector3 groupPos, float transparency) |
67 | : base() | 67 | : base() |
68 | { | 68 | { |
69 | CreatePointEntity(scene, uuid, LocalId, groupPos); | 69 | CreatePointEntity(scene, uuid, groupPos); |
70 | SetPartTransparency(m_Entity.RootPart, transparency); | 70 | SetPartTransparency(m_Entity.RootPart, transparency); |
71 | } | 71 | } |
72 | 72 | ||
@@ -74,7 +74,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
74 | 74 | ||
75 | #region Private Methods | 75 | #region Private Methods |
76 | 76 | ||
77 | private void CreatePointEntity(Scene scene, UUID uuid, uint LocalId, Vector3 groupPos) | 77 | private void CreatePointEntity(Scene scene, UUID uuid, Vector3 groupPos) |
78 | { | 78 | { |
79 | SceneObjectGroup x = new SceneObjectGroup(); | 79 | SceneObjectGroup x = new SceneObjectGroup(); |
80 | SceneObjectPart y = new SceneObjectPart(); | 80 | SceneObjectPart y = new SceneObjectPart(); |
@@ -88,8 +88,6 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
88 | y.LastOwnerID = UUID.Zero; | 88 | y.LastOwnerID = UUID.Zero; |
89 | y.UUID = uuid; | 89 | y.UUID = uuid; |
90 | 90 | ||
91 | y.LocalId = LocalId; | ||
92 | |||
93 | y.Shape = PrimitiveBaseShape.CreateBox(); | 91 | y.Shape = PrimitiveBaseShape.CreateBox(); |
94 | y.Scale = new Vector3(0.01f,0.01f,0.01f); | 92 | y.Scale = new Vector3(0.01f,0.01f,0.01f); |
95 | y.LastOwnerID = UUID.Zero; | 93 | y.LastOwnerID = UUID.Zero; |