diff options
Some more work on SceneObject/ Primitive rewrites (slowly getting there)
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/AllNewSceneObjectGroup2.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/AllNewSceneObjectGroup2.cs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/AllNewSceneObjectGroup2.cs b/OpenSim/Region/Environment/Scenes/AllNewSceneObjectGroup2.cs index f932b70..e43329d 100644 --- a/OpenSim/Region/Environment/Scenes/AllNewSceneObjectGroup2.cs +++ b/OpenSim/Region/Environment/Scenes/AllNewSceneObjectGroup2.cs | |||
@@ -107,6 +107,41 @@ namespace OpenSim.Region.Environment.Scenes | |||
107 | return null; | 107 | return null; |
108 | } | 108 | } |
109 | 109 | ||
110 | /// <summary> | ||
111 | /// Does this group contain the child prim | ||
112 | /// should be able to remove these methods once we have a entity index in scene | ||
113 | /// </summary> | ||
114 | /// <param name="primID"></param> | ||
115 | /// <returns></returns> | ||
116 | public bool HasChildPrim(LLUUID primID) | ||
117 | { | ||
118 | AllNewSceneObjectPart2 childPart = null; | ||
119 | if (this.m_parts.ContainsKey(primID)) | ||
120 | { | ||
121 | childPart = this.m_parts[primID]; | ||
122 | return true; | ||
123 | } | ||
124 | return false; | ||
125 | } | ||
126 | |||
127 | /// <summary> | ||
128 | /// Does this group contain the child prim | ||
129 | /// should be able to remove these methods once we have a entity index in scene | ||
130 | /// </summary> | ||
131 | /// <param name="localID"></param> | ||
132 | /// <returns></returns> | ||
133 | public bool HasChildPrim(uint localID) | ||
134 | { | ||
135 | foreach (AllNewSceneObjectPart2 part in this.m_parts.Values) | ||
136 | { | ||
137 | if (part.LocalID == localID) | ||
138 | { | ||
139 | return true; | ||
140 | } | ||
141 | } | ||
142 | return false; | ||
143 | } | ||
144 | |||
110 | public void TriggerTainted() | 145 | public void TriggerTainted() |
111 | { | 146 | { |
112 | if (OnPrimCountTainted != null) | 147 | if (OnPrimCountTainted != null) |