Skip single prims in unlink selections
parent
f71025aeed
commit
1a695875a7
|
@ -1648,7 +1648,9 @@ 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
|
||||||
|
{
|
||||||
|
if (part.LinkNum < 2) // Root
|
||||||
rootParts.Add(part);
|
rootParts.Add(part);
|
||||||
else
|
else
|
||||||
childParts.Add(part);
|
childParts.Add(part);
|
||||||
|
@ -1657,6 +1659,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
if (!affectedGroups.Contains(group))
|
if (!affectedGroups.Contains(group))
|
||||||
affectedGroups.Add(group);
|
affectedGroups.Add(group);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_log.ErrorFormat("Viewer requested unlink of nonexistent part {0}", primID);
|
m_log.ErrorFormat("Viewer requested unlink of nonexistent part {0}", primID);
|
||||||
|
|
Loading…
Reference in New Issue