do not Space::clear() in clearNonLocalEntities()

This commit is contained in:
Andrew Meadows 2019-02-21 16:33:31 -08:00
parent f9e5ee0185
commit 982c4c2bc4

View file

@ -219,7 +219,6 @@ void EntityTreeRenderer::clearNonLocalEntities() {
std::unordered_map<EntityItemID, EntityRendererPointer> savedEntities;
// remove all entities from the scene
_space->clear();
auto scene = _viewState->getMain3DScene();
if (scene) {
render::Transaction transaction;
@ -1392,4 +1391,4 @@ bool EntityTreeRenderer::removeMaterialFromAvatar(const QUuid& avatarID, graphic
return _removeMaterialFromAvatarOperator(avatarID, material, parentMaterialName);
}
return false;
}
}