From 5c28f3c3a23fee918bc1acd4aa3cf40953f4d0e6 Mon Sep 17 00:00:00 2001
From: MW
Date: Thu, 2 Aug 2007 16:40:50 +0000
Subject: Some more work on SceneObject/ Primitive rewrites (slowly getting
there)
---
.../Environment/Scenes/AllNewSceneObjectGroup2.cs | 35 ++++++++++++++++++++++
1 file changed, 35 insertions(+)
(limited to 'OpenSim/Region/Environment/Scenes/AllNewSceneObjectGroup2.cs')
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
return null;
}
+ ///
+ /// Does this group contain the child prim
+ /// should be able to remove these methods once we have a entity index in scene
+ ///
+ ///
+ ///
+ public bool HasChildPrim(LLUUID primID)
+ {
+ AllNewSceneObjectPart2 childPart = null;
+ if (this.m_parts.ContainsKey(primID))
+ {
+ childPart = this.m_parts[primID];
+ return true;
+ }
+ return false;
+ }
+
+ ///
+ /// Does this group contain the child prim
+ /// should be able to remove these methods once we have a entity index in scene
+ ///
+ ///
+ ///
+ public bool HasChildPrim(uint localID)
+ {
+ foreach (AllNewSceneObjectPart2 part in this.m_parts.Values)
+ {
+ if (part.LocalID == localID)
+ {
+ return true;
+ }
+ }
+ return false;
+ }
+
public void TriggerTainted()
{
if (OnPrimCountTainted != null)
--
cgit v1.1