don't persist the octree if it never loaded

This commit is contained in:
Stephen Birarda 2015-12-01 10:00:25 -08:00
parent ea831238e6
commit 7dbf29821a

View file

@ -248,7 +248,7 @@ QByteArray OctreePersistThread::getPersistFileContents() const {
}
void OctreePersistThread::persist() {
if (_tree->isDirty()) {
if (_tree->isDirty() && _initialLoadComplete) {
_tree->withWriteLock([&] {
qCDebug(octree) << "pruning Octree before saving...";