diff options
author | Teravus Ovares | 2008-09-06 07:52:41 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-09-06 07:52:41 +0000 |
commit | 7d89e122930be39e84a6d174548fa2d12ac0484a (patch) | |
tree | e5aa5752f988a9aba2a969f49e5e208985eda80c /OpenSim/Region/Environment/Modules/ContentManagementSystem/ContentManagementEntity.cs | |
parent | * minor: speculatively try a change to bamboo.build to see if this generates ... (diff) | |
download | opensim-SC-7d89e122930be39e84a6d174548fa2d12ac0484a.zip opensim-SC-7d89e122930be39e84a6d174548fa2d12ac0484a.tar.gz opensim-SC-7d89e122930be39e84a6d174548fa2d12ac0484a.tar.bz2 opensim-SC-7d89e122930be39e84a6d174548fa2d12ac0484a.tar.xz |
* This is the fabled LibOMV update with all of the libOMV types from JHurliman
* This is a HUGE OMG update and will definitely have unknown side effects.. so this is really only for the strong hearted at this point. Regular people should let the dust settle.
* This has been tested to work with most basic functions. However.. make sure you back up 'everything' before using this. It's that big!
* Essentially we're back at square 1 in the testing phase.. so lets identify things that broke.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/ContentManagementSystem/ContentManagementEntity.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/ContentManagementSystem/ContentManagementEntity.cs | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/ContentManagementEntity.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/ContentManagementEntity.cs index 8e0dd33..819ff87 100644 --- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/ContentManagementEntity.cs +++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/ContentManagementEntity.cs | |||
@@ -38,7 +38,7 @@ using System; | |||
38 | using System.Collections.Generic; | 38 | using System.Collections.Generic; |
39 | using System.Drawing; | 39 | using System.Drawing; |
40 | 40 | ||
41 | using libsecondlife; | 41 | using OpenMetaverse; |
42 | 42 | ||
43 | using Nini.Config; | 43 | using Nini.Config; |
44 | 44 | ||
@@ -49,8 +49,6 @@ using OpenSim.Region.Physics.Manager; | |||
49 | 49 | ||
50 | using log4net; | 50 | using log4net; |
51 | 51 | ||
52 | using Axiom.Math; | ||
53 | |||
54 | namespace OpenSim.Region.Environment.Modules.ContentManagement | 52 | namespace OpenSim.Region.Environment.Modules.ContentManagement |
55 | { | 53 | { |
56 | public class ContentManagementEntity : MetaEntity | 54 | public class ContentManagementEntity : MetaEntity |
@@ -64,8 +62,8 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
64 | 62 | ||
65 | #region Fields | 63 | #region Fields |
66 | 64 | ||
67 | protected Dictionary<LLUUID, AuraMetaEntity> m_AuraEntities = new Dictionary<LLUUID, AuraMetaEntity>(); | 65 | protected Dictionary<UUID, AuraMetaEntity> m_AuraEntities = new Dictionary<UUID, AuraMetaEntity>(); |
68 | protected Dictionary<LLUUID, BeamMetaEntity> m_BeamEntities = new Dictionary<LLUUID, BeamMetaEntity>(); | 66 | protected Dictionary<UUID, BeamMetaEntity> m_BeamEntities = new Dictionary<UUID, BeamMetaEntity>(); |
69 | 67 | ||
70 | // The LinkNum of parts in m_Entity and m_UnchangedEntity are the same though UUID and LocalId are different. | 68 | // The LinkNum of parts in m_Entity and m_UnchangedEntity are the same though UUID and LocalId are different. |
71 | // This can come in handy. | 69 | // This can come in handy. |
@@ -108,7 +106,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
108 | /// <summary> | 106 | /// <summary> |
109 | /// Check if an entitybase list (like that returned by scene.GetEntities() ) contains a group with the rootpart uuid that matches the current uuid. | 107 | /// Check if an entitybase list (like that returned by scene.GetEntities() ) contains a group with the rootpart uuid that matches the current uuid. |
110 | /// </summary> | 108 | /// </summary> |
111 | private bool ContainsKey(List<EntityBase> list, LLUUID uuid) | 109 | private bool ContainsKey(List<EntityBase> list, UUID uuid) |
112 | { | 110 | { |
113 | foreach( EntityBase part in list) | 111 | foreach( EntityBase part in list) |
114 | if (part.UUID == uuid) | 112 | if (part.UUID == uuid) |
@@ -116,7 +114,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
116 | return false; | 114 | return false; |
117 | } | 115 | } |
118 | 116 | ||
119 | private SceneObjectGroup GetGroupByUUID(System.Collections.Generic.List<EntityBase> list, LLUUID uuid) | 117 | private SceneObjectGroup GetGroupByUUID(System.Collections.Generic.List<EntityBase> list, UUID uuid) |
120 | { | 118 | { |
121 | foreach (EntityBase ent in list) | 119 | foreach (EntityBase ent in list) |
122 | { | 120 | { |
@@ -150,7 +148,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
150 | // if already displaying a red aura over part, make sure its red | 148 | // if already displaying a red aura over part, make sure its red |
151 | if (m_AuraEntities.ContainsKey(part.UUID)) | 149 | if (m_AuraEntities.ContainsKey(part.UUID)) |
152 | { | 150 | { |
153 | m_AuraEntities[part.UUID].SetAura(new LLVector3(254,0,0), part.Scale); | 151 | m_AuraEntities[part.UUID].SetAura(new Vector3(254,0,0), part.Scale); |
154 | } | 152 | } |
155 | else | 153 | else |
156 | { | 154 | { |
@@ -158,7 +156,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
158 | m_Entity.Scene.PrimIDAllocate(), | 156 | m_Entity.Scene.PrimIDAllocate(), |
159 | part.GetWorldPosition(), | 157 | part.GetWorldPosition(), |
160 | MetaEntity.TRANSLUCENT, | 158 | MetaEntity.TRANSLUCENT, |
161 | new LLVector3(254,0,0), | 159 | new Vector3(254,0,0), |
162 | part.Scale | 160 | part.Scale |
163 | ); | 161 | ); |
164 | m_AuraEntities.Add(part.UUID, auraGroup); | 162 | m_AuraEntities.Add(part.UUID, auraGroup); |
@@ -189,7 +187,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
189 | /// <summary> | 187 | /// <summary> |
190 | /// Check if the revisioned scene object group that this CMEntity is based off of contains a child with the given UUID. | 188 | /// Check if the revisioned scene object group that this CMEntity is based off of contains a child with the given UUID. |
191 | /// </summary> | 189 | /// </summary> |
192 | public bool HasChildPrim(LLUUID uuid) | 190 | public bool HasChildPrim(UUID uuid) |
193 | { | 191 | { |
194 | if (m_UnchangedEntity.Children.ContainsKey(uuid)) | 192 | if (m_UnchangedEntity.Children.ContainsKey(uuid)) |
195 | return true; | 193 | return true; |
@@ -266,7 +264,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
266 | m_UnchangedEntity.RootPart.GetWorldPosition(), | 264 | m_UnchangedEntity.RootPart.GetWorldPosition(), |
267 | MetaEntity.TRANSLUCENT, | 265 | MetaEntity.TRANSLUCENT, |
268 | sceneEntityPart, | 266 | sceneEntityPart, |
269 | new LLVector3(0,0,254) | 267 | new Vector3(0,0,254) |
270 | ); | 268 | ); |
271 | m_BeamEntities.Add(m_UnchangedEntity.RootPart.UUID, beamGroup); | 269 | m_BeamEntities.Add(m_UnchangedEntity.RootPart.UUID, beamGroup); |
272 | } | 270 | } |
@@ -280,7 +278,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
280 | m_Entity.Scene.PrimIDAllocate(), | 278 | m_Entity.Scene.PrimIDAllocate(), |
281 | UnchangedPart.GetWorldPosition(), | 279 | UnchangedPart.GetWorldPosition(), |
282 | MetaEntity.TRANSLUCENT, | 280 | MetaEntity.TRANSLUCENT, |
283 | new LLVector3(0,0,254), | 281 | new Vector3(0,0,254), |
284 | UnchangedPart.Scale | 282 | UnchangedPart.Scale |
285 | ); | 283 | ); |
286 | m_AuraEntities.Add(UnchangedPart.UUID, auraGroup); | 284 | m_AuraEntities.Add(UnchangedPart.UUID, auraGroup); |
@@ -314,7 +312,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
314 | m_Entity.Scene.PrimIDAllocate(), | 312 | m_Entity.Scene.PrimIDAllocate(), |
315 | UnchangedPart.GetWorldPosition(), | 313 | UnchangedPart.GetWorldPosition(), |
316 | MetaEntity.TRANSLUCENT, | 314 | MetaEntity.TRANSLUCENT, |
317 | new LLVector3(254,0,0), | 315 | new Vector3(254,0,0), |
318 | UnchangedPart.Scale | 316 | UnchangedPart.Scale |
319 | ); | 317 | ); |
320 | m_AuraEntities.Add(UnchangedPart.UUID, auraGroup); | 318 | m_AuraEntities.Add(UnchangedPart.UUID, auraGroup); |
@@ -386,4 +384,4 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement | |||
386 | 384 | ||
387 | #endregion Public Methods | 385 | #endregion Public Methods |
388 | } | 386 | } |
389 | } \ No newline at end of file | 387 | } |