mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-17 22:27:00 +02:00
Merge pull request #6507 from birarda/es-deadlock
don't persist the octree if it never loaded
This commit is contained in:
commit
2c886658ba
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