diff options
Start of replacing the old SceneObject/Primitive classes with the new versions.
PLEASE NOTE: that with this revision some prim related features may be broke for a while. (things like linking prims and the parcel prim count.)
Also this revision may not work on mono, but that will be fixed soon.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Primitive(Old).cs (renamed from OpenSim/Region/Environment/Scenes/Primitive.cs) | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Primitive.cs b/OpenSim/Region/Environment/Scenes/Primitive(Old).cs index 132eabb..64976a8 100644 --- a/OpenSim/Region/Environment/Scenes/Primitive.cs +++ b/OpenSim/Region/Environment/Scenes/Primitive(Old).cs | |||
@@ -45,7 +45,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
45 | private PrimitiveBaseShape m_shape; | 45 | private PrimitiveBaseShape m_shape; |
46 | private byte[] m_particleSystem = new byte[0]; | 46 | private byte[] m_particleSystem = new byte[0]; |
47 | 47 | ||
48 | public SceneObject m_RootParent; | 48 | public SceneObjectOLD m_RootParent; |
49 | public bool m_isRootPrim; | 49 | public bool m_isRootPrim; |
50 | public EntityBase m_Parent; | 50 | public EntityBase m_Parent; |
51 | 51 | ||
@@ -144,7 +144,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
144 | #region Constructors | 144 | #region Constructors |
145 | 145 | ||
146 | public Primitive(ulong regionHandle, Scene scene, LLUUID ownerID, uint localID, bool isRoot, EntityBase parent, | 146 | public Primitive(ulong regionHandle, Scene scene, LLUUID ownerID, uint localID, bool isRoot, EntityBase parent, |
147 | SceneObject rootObject, PrimitiveBaseShape shape, LLVector3 pos) | 147 | SceneObjectOLD rootObject, PrimitiveBaseShape shape, LLVector3 pos) |
148 | { | 148 | { |
149 | m_regionHandle = regionHandle; | 149 | m_regionHandle = regionHandle; |
150 | m_scene = scene; | 150 | m_scene = scene; |
@@ -184,7 +184,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
184 | 184 | ||
185 | #region Duplication | 185 | #region Duplication |
186 | 186 | ||
187 | public Primitive Copy(EntityBase parent, SceneObject rootParent) | 187 | public Primitive Copy(EntityBase parent, SceneObjectOLD rootParent) |
188 | { | 188 | { |
189 | Primitive dupe = (Primitive)MemberwiseClone(); | 189 | Primitive dupe = (Primitive)MemberwiseClone(); |
190 | 190 | ||
@@ -204,7 +204,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
204 | dupe.m_uuid = LLUUID.Random(); | 204 | dupe.m_uuid = LLUUID.Random(); |
205 | dupe.LocalId = newLocalID; | 205 | dupe.LocalId = newLocalID; |
206 | 206 | ||
207 | if (parent is SceneObject) | 207 | if (parent is SceneObjectGroup) |
208 | { | 208 | { |
209 | dupe.m_isRootPrim = true; | 209 | dupe.m_isRootPrim = true; |
210 | dupe.ParentID = 0; | 210 | dupe.ParentID = 0; |
@@ -314,13 +314,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
314 | /// | 314 | /// |
315 | /// </summary> | 315 | /// </summary> |
316 | /// <param name="linkObject"></param> | 316 | /// <param name="linkObject"></param> |
317 | public void AddNewChildren(SceneObject linkObject) | 317 | public void AddNewChildren(SceneObjectOLD linkObject) |
318 | { | 318 | { |
319 | // Console.WriteLine("linking new prims " + linkObject.rootLocalID + " to me (" + this.LocalId + ")"); | 319 | // Console.WriteLine("linking new prims " + linkObject.rootLocalID + " to me (" + this.LocalId + ")"); |
320 | //TODO check permissions | 320 | //TODO check permissions |
321 | 321 | ||
322 | m_children.Add(linkObject.rootPrimitive); | 322 | m_children.Add(linkObject.rootPrimitive); |
323 | linkObject.rootPrimitive.SetNewParent(this, m_RootParent); | 323 | linkObject.rootPrimitive.SetNewParent(this, m_RootParent); |
324 | 324 | ||
325 | m_scene.DeleteEntity(linkObject.rootUUID); | 325 | m_scene.DeleteEntity(linkObject.rootUUID); |
326 | linkObject.DeleteAllChildren(); | 326 | linkObject.DeleteAllChildren(); |
@@ -333,7 +333,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
333 | /// </summary> | 333 | /// </summary> |
334 | /// <param name="newParent"></param> | 334 | /// <param name="newParent"></param> |
335 | /// <param name="rootParent"></param> | 335 | /// <param name="rootParent"></param> |
336 | public void SetNewParent(Primitive newParent, SceneObject rootParent) | 336 | public void SetNewParent(Primitive newParent, SceneObjectOLD rootParent) |
337 | { | 337 | { |
338 | LLVector3 oldPos = new LLVector3(Pos.X, Pos.Y, Pos.Z); | 338 | LLVector3 oldPos = new LLVector3(Pos.X, Pos.Y, Pos.Z); |
339 | m_isRootPrim = false; | 339 | m_isRootPrim = false; |
@@ -363,7 +363,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
363 | /// | 363 | /// |
364 | /// </summary> | 364 | /// </summary> |
365 | /// <param name="newRoot"></param> | 365 | /// <param name="newRoot"></param> |
366 | public void SetRootParent(SceneObject newRoot, Primitive newParent, LLVector3 oldParentPosition, | 366 | public void SetRootParent(SceneObjectOLD newRoot, Primitive newParent, LLVector3 oldParentPosition, |
367 | Quaternion oldParentRotation) | 367 | Quaternion oldParentRotation) |
368 | { | 368 | { |
369 | LLVector3 oldPos = new LLVector3(Pos.X, Pos.Y, Pos.Z); | 369 | LLVector3 oldPos = new LLVector3(Pos.X, Pos.Y, Pos.Z); |