Skip single prims in unlink selections
parent
f71025aeed
commit
1a695875a7
|
@ -1648,14 +1648,17 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
SceneObjectPart part = m_parentScene.GetSceneObjectPart(primID);
|
SceneObjectPart part = m_parentScene.GetSceneObjectPart(primID);
|
||||||
if (part != null)
|
if (part != null)
|
||||||
{
|
{
|
||||||
if (part.LinkNum < 2) // Root or single
|
if (part.ParentGroup.Children.Count != 1) // Skip single
|
||||||
rootParts.Add(part);
|
{
|
||||||
else
|
if (part.LinkNum < 2) // Root
|
||||||
childParts.Add(part);
|
rootParts.Add(part);
|
||||||
|
else
|
||||||
|
childParts.Add(part);
|
||||||
|
|
||||||
SceneObjectGroup group = part.ParentGroup;
|
SceneObjectGroup group = part.ParentGroup;
|
||||||
if (!affectedGroups.Contains(group))
|
if (!affectedGroups.Contains(group))
|
||||||
affectedGroups.Add(group);
|
affectedGroups.Add(group);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue