diff options
Diffstat (limited to 'OpenSim/OpenSim.Region/World')
-rw-r--r-- | OpenSim/OpenSim.Region/World/Entities/Primitive.cs | 23 | ||||
-rw-r--r-- | OpenSim/OpenSim.Region/World/Entities/SceneObject.cs | 3 | ||||
-rw-r--r-- | OpenSim/OpenSim.Region/World/World.cs | 3 |
3 files changed, 22 insertions, 7 deletions
diff --git a/OpenSim/OpenSim.Region/World/Entities/Primitive.cs b/OpenSim/OpenSim.Region/World/Entities/Primitive.cs index 0680eb3..3d915a1 100644 --- a/OpenSim/OpenSim.Region/World/Entities/Primitive.cs +++ b/OpenSim/OpenSim.Region/World/Entities/Primitive.cs | |||
@@ -93,7 +93,7 @@ namespace OpenSim.Region | |||
93 | /// <param name="clientThreads"></param> | 93 | /// <param name="clientThreads"></param> |
94 | /// <param name="regionHandle"></param> | 94 | /// <param name="regionHandle"></param> |
95 | /// <param name="world"></param> | 95 | /// <param name="world"></param> |
96 | public Primitive(Dictionary<uint, IClientAPI> clientThreads, ulong regionHandle, World world) | 96 | public Primitive( ulong regionHandle, World world) |
97 | { | 97 | { |
98 | // m_clientThreads = clientThreads; | 98 | // m_clientThreads = clientThreads; |
99 | m_regionHandle = regionHandle; | 99 | m_regionHandle = regionHandle; |
@@ -104,13 +104,30 @@ namespace OpenSim.Region | |||
104 | /// <summary> | 104 | /// <summary> |
105 | /// | 105 | /// |
106 | /// </summary> | 106 | /// </summary> |
107 | /// <param name="regionHandle"></param> | ||
108 | /// <param name="world"></param> | ||
109 | /// <param name="addPacket"></param> | ||
110 | /// <param name="ownerID"></param> | ||
111 | /// <param name="localID"></param> | ||
112 | public Primitive(ulong regionHandle, World world, ObjectAddPacket addPacket, LLUUID ownerID, uint localID) | ||
113 | { | ||
114 | // m_clientThreads = clientThreads; | ||
115 | m_regionHandle = regionHandle; | ||
116 | m_world = world; | ||
117 | inventoryItems = new Dictionary<LLUUID, InventoryItem>(); | ||
118 | this.CreateFromPacket(addPacket, ownerID, localID); | ||
119 | } | ||
120 | |||
121 | /// <summary> | ||
122 | /// | ||
123 | /// </summary> | ||
107 | /// <param name="clientThreads"></param> | 124 | /// <param name="clientThreads"></param> |
108 | /// <param name="regionHandle"></param> | 125 | /// <param name="regionHandle"></param> |
109 | /// <param name="world"></param> | 126 | /// <param name="world"></param> |
110 | /// <param name="owner"></param> | 127 | /// <param name="owner"></param> |
111 | /// <param name="fullID"></param> | 128 | /// <param name="fullID"></param> |
112 | /// <param name="localID"></param> | 129 | /// <param name="localID"></param> |
113 | public Primitive(Dictionary<uint, IClientAPI> clientThreads, ulong regionHandle, World world, LLUUID owner, LLUUID fullID, uint localID) | 130 | public Primitive( ulong regionHandle, World world, LLUUID owner, LLUUID fullID, uint localID) |
114 | { | 131 | { |
115 | // m_clientThreads = clientThreads; | 132 | // m_clientThreads = clientThreads; |
116 | m_regionHandle = regionHandle; | 133 | m_regionHandle = regionHandle; |
@@ -132,7 +149,7 @@ namespace OpenSim.Region | |||
132 | /// <param name="owner"></param> | 149 | /// <param name="owner"></param> |
133 | /// <param name="localID"></param> | 150 | /// <param name="localID"></param> |
134 | /// <param name="position"></param> | 151 | /// <param name="position"></param> |
135 | public Primitive(Dictionary<uint, IClientAPI> clientThreads, ulong regionHandle, World world, LLUUID owner, uint localID, LLVector3 position) | 152 | public Primitive( ulong regionHandle, World world, LLUUID owner, uint localID, LLVector3 position) |
136 | { | 153 | { |
137 | //m_clientThreads = clientThreads; | 154 | //m_clientThreads = clientThreads; |
138 | m_regionHandle = regionHandle; | 155 | m_regionHandle = regionHandle; |
diff --git a/OpenSim/OpenSim.Region/World/Entities/SceneObject.cs b/OpenSim/OpenSim.Region/World/Entities/SceneObject.cs index 6ded881..558dc6b 100644 --- a/OpenSim/OpenSim.Region/World/Entities/SceneObject.cs +++ b/OpenSim/OpenSim.Region/World/Entities/SceneObject.cs | |||
@@ -62,8 +62,7 @@ namespace OpenSim.Region | |||
62 | /// <param name="localID"></param> | 62 | /// <param name="localID"></param> |
63 | public void CreateFromPacket(ObjectAddPacket addPacket, LLUUID agentID, uint localID) | 63 | public void CreateFromPacket(ObjectAddPacket addPacket, LLUUID agentID, uint localID) |
64 | { | 64 | { |
65 | this.rootPrimitive = new Primitive(null, this.regionHandle, this.m_world); | 65 | this.rootPrimitive = new Primitive( this.regionHandle, this.m_world, addPacket, agentID, localID); |
66 | this.rootPrimitive.CreateFromPacket(addPacket, agentID, localID); | ||
67 | } | 66 | } |
68 | 67 | ||
69 | /// <summary> | 68 | /// <summary> |
diff --git a/OpenSim/OpenSim.Region/World/World.cs b/OpenSim/OpenSim.Region/World/World.cs index 8c1493e..40eb7ef 100644 --- a/OpenSim/OpenSim.Region/World/World.cs +++ b/OpenSim/OpenSim.Region/World/World.cs | |||
@@ -482,8 +482,7 @@ namespace OpenSim.Region | |||
482 | try | 482 | try |
483 | { | 483 | { |
484 | // MainConsole.Instance.Notice("World.cs: AddNewPrim() - Creating new prim"); | 484 | // MainConsole.Instance.Notice("World.cs: AddNewPrim() - Creating new prim"); |
485 | Primitive prim = new Primitive(m_clientThreads, m_regionHandle, this); | 485 | Primitive prim = new Primitive(m_regionHandle, this, addPacket, ownerID, this._primCount); |
486 | prim.CreateFromPacket(addPacket, ownerID, this._primCount); | ||
487 | 486 | ||
488 | this.Entities.Add(prim.uuid, prim); | 487 | this.Entities.Add(prim.uuid, prim); |
489 | this._primCount++; | 488 | this._primCount++; |