aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/AllNewSceneObjectGroup2.cs
diff options
context:
space:
mode:
authorMW2007-08-02 16:40:50 +0000
committerMW2007-08-02 16:40:50 +0000
commit5c28f3c3a23fee918bc1acd4aa3cf40953f4d0e6 (patch)
tree88d1e5f0bdaf837699fc807dc7bc46117e53dbeb /OpenSim/Region/Environment/Scenes/AllNewSceneObjectGroup2.cs
parentChanged a couple of method in PermissionManager from private to protected to ... (diff)
downloadopensim-SC_OLD-5c28f3c3a23fee918bc1acd4aa3cf40953f4d0e6.zip
opensim-SC_OLD-5c28f3c3a23fee918bc1acd4aa3cf40953f4d0e6.tar.gz
opensim-SC_OLD-5c28f3c3a23fee918bc1acd4aa3cf40953f4d0e6.tar.bz2
opensim-SC_OLD-5c28f3c3a23fee918bc1acd4aa3cf40953f4d0e6.tar.xz
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.cs35
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)