mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 13:10:42 +02:00
don't persist the octree if it never loaded
This commit is contained in:
parent
ea831238e6
commit
7dbf29821a
1 changed files with 1 additions and 1 deletions
|
@ -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...";
|
||||
|
|
Loading…
Reference in a new issue