Merge pull request #12919 from kitely/fix-import-entities-distance

Fixed crash when importing entities from JSON multiple times
This commit is contained in:
John Conklin II 2018-04-18 11:52:46 -07:00 committed by GitHub
commit db99d12736
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,6 +112,11 @@ void EntityTree::eraseAllOctreeElements(bool createNewRoot) {
resetClientEditStats();
clearDeletedEntities();
{
QWriteLocker locker(&_needsParentFixupLock);
_needsParentFixup.clear();
}
}
void EntityTree::readBitstreamToTree(const unsigned char* bitstream,