on GetLinkNumPart ignore again link number 0 on a linkset with more than one prim, fix

This commit is contained in:
UbitUmarov 2024-01-22 03:12:54 +00:00
parent 01b83bf79e
commit c3f2c9324c
1 changed files with 7 additions and 2 deletions

View File

@ -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)