mantis 8458: don't forget prims on search map on link/unlink

0.9.1.0-post-fixes
UbitUmarov 2019-01-19 07:09:39 +00:00
parent cc19957e0a
commit bef8ea8bcc
1 changed files with 8 additions and 6 deletions

View File

@ -573,14 +573,16 @@ namespace OpenSim.Region.Framework.Scenes
m_scenePartsLock.EnterWriteLock();
entered = true;
}
for (int i = 0; i < parts.Length; ++i)
if (!resultOfObjectLinked)
{
part = parts[i];
m_scenePartsByID.Remove(part.UUID);
m_scenePartsByLocalID.Remove(part.LocalId);
for (int i = 0; i < parts.Length; ++i)
{
part = parts[i];
m_scenePartsByID.Remove(part.UUID);
m_scenePartsByLocalID.Remove(part.LocalId);
}
m_scenePartsArray = null;
}
m_scenePartsArray = null;
ret = Entities.Remove(uuid);
}
finally