* Remove warning and tidy up logic in SceneObjectGroup.UpdatePrimFlags()

0.6.0-stable
Justin Clarke Casey 2008-07-12 19:05:12 +00:00
parent 4e7dd0d919
commit 654b3424c7
1 changed files with 6 additions and 14 deletions

View File

@ -1997,22 +1997,21 @@ namespace OpenSim.Region.Environment.Scenes
}
/// <summary>
///
/// Update prim flags for this group.
/// </summary>
/// <param name="localID"></param>
/// <param name="type"></param>
/// <param name="inUse"></param>
/// <param name="data"></param>
///
public void UpdatePrimFlags(uint localID, ushort type, bool inUse, byte[] data)
{
SceneObjectPart part = GetChildPart(localID);
if (part != null)
SceneObjectPart selectionPart = GetChildPart(localID);
if (selectionPart != null)
{
// If we have children
lock (m_parts)
{
foreach (SceneObjectPart parts in m_parts.Values)
foreach (SceneObjectPart part in m_parts.Values)
{
if (part.Scale.X > 10.0 || part.Scale.Y > 10.0 || part.Scale.Z > 10.0)
{
@ -2021,14 +2020,7 @@ namespace OpenSim.Region.Environment.Scenes
}
}
if (m_parts.Count > 1)
{
foreach (SceneObjectPart parts in m_parts.Values)
{
parts.UpdatePrimFlags(type, inUse, data);
}
}
else
foreach (SceneObjectPart part in m_parts.Values)
{
part.UpdatePrimFlags(type, inUse, data);
}