sog GetLinkNumber() forget avatars that did standup

0.9.1.0-post-fixes
UbitUmarov 2018-12-28 21:26:07 +00:00
parent 00278f7258
commit 616fa8dbee
2 changed files with 5 additions and 4 deletions

View File

@ -5526,10 +5526,11 @@ namespace OpenSim.Region.Framework.Scenes
return -1;
}
public void InvalidatePartsLinkMaps()
public void InvalidatePartsLinkMaps(bool all = true)
{
lock(m_partsNameToLinkMap)
{
if(all)
m_partsNameToLinkMap.Clear();
GetLinkNumber_lastname = String.Empty;
GetLinkNumber_lastnumber = -1;

View File

@ -5638,8 +5638,8 @@ namespace OpenSim.Region.Framework.Scenes
if (m_sittingAvatars.Count == 0)
m_sittingAvatars = null;
ParentGroup.m_sittingAvatars.Remove(sp);
if(ParentGroup.m_sittingAvatars.Remove(sp))
ParentGroup.InvalidatePartsLinkMaps(false);
return true;
}