mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 08:21:24 +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() {
|
void OctreePersistThread::persist() {
|
||||||
if (_tree->isDirty()) {
|
if (_tree->isDirty() && _initialLoadComplete) {
|
||||||
|
|
||||||
_tree->withWriteLock([&] {
|
_tree->withWriteLock([&] {
|
||||||
qCDebug(octree) << "pruning Octree before saving...";
|
qCDebug(octree) << "pruning Octree before saving...";
|
||||||
|
|
Loading…
Reference in a new issue