mirror of https://github.com/opensim/opensim.git
on GetLinkNumPart ignore again link number 0 on a linkset with more than one prim, fix
This commit is contained in:
parent
01b83bf79e
commit
c3f2c9324c
|
@ -3070,8 +3070,13 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
{
|
||||
if (linknum < 0)
|
||||
return null;
|
||||
//if (linknum < 2)
|
||||
// return RootPart;
|
||||
if (linknum < 2)
|
||||
{
|
||||
// old code and sl do ignore linknum = 0 on linksets with more than one prim
|
||||
if (linknum == 0 && m_parts.Count > 1)
|
||||
return null;
|
||||
return RootPart;
|
||||
}
|
||||
|
||||
Span<SceneObjectPart> parts = m_parts.GetArray().AsSpan();
|
||||
if (linknum <= parts.Length)
|
||||
|
|
Loading…
Reference in New Issue