Merge pull request #14980 from AndrewMeadows/dont-clear-space

Case 21309: don't corrupt workload system
This commit is contained in:
John Conklin II 2019-02-25 09:52:15 -08:00 committed by GitHub
commit 6af2b25767
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
@ -259,8 +258,6 @@ void EntityTreeRenderer::clear() {
resetEntitiesScriptEngine();
}
// remove all entities from the scene
_space->clear();
auto scene = _viewState->getMain3DScene();
if (scene) {
render::Transaction transaction;
@ -1392,4 +1389,4 @@ bool EntityTreeRenderer::removeMaterialFromAvatar(const QUuid& avatarID, graphic
return _removeMaterialFromAvatarOperator(avatarID, material, parentMaterialName);
}
return false;
}
}