also clear _staleProxies when clearing all else

This commit is contained in:
Andrew Meadows 2018-03-01 12:22:42 -08:00
parent 7a852a0e31
commit 1e1d9907a4

View file

@ -98,6 +98,7 @@ void EntityTree::eraseAllOctreeElements(bool createNewRoot) {
if (_simulation) {
_simulation->clearEntities();
}
_staleProxies.clear();
QHash<EntityItemID, EntityItemPointer> localMap;
localMap.swap(_entityMap);
this->withWriteLock([&] {