mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
sog GetLinkNumber() forget avatars that did standup
This commit is contained in:
@@ -5526,11 +5526,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
return -1;
|
||||
}
|
||||
|
||||
public void InvalidatePartsLinkMaps()
|
||||
public void InvalidatePartsLinkMaps(bool all = true)
|
||||
{
|
||||
lock(m_partsNameToLinkMap)
|
||||
{
|
||||
m_partsNameToLinkMap.Clear();
|
||||
if(all)
|
||||
m_partsNameToLinkMap.Clear();
|
||||
GetLinkNumber_lastname = String.Empty;
|
||||
GetLinkNumber_lastnumber = -1;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user