summaryrefslogtreecommitdiffstats
path: root/src/quick3d/quick3d/items
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2018-01-17 11:49:32 +0000
committerSean Harmer <sean.harmer@kdab.com>2018-01-17 11:49:32 +0000
commitb420edb0b5e914b83c35a071b371d0759eba4d3d (patch)
treee84852a8c44a18fe6aeadf29cba5dcdefe8e9e58 /src/quick3d/quick3d/items
parent24b2599b91c51ae4b7f2c161cf46696bbde67624 (diff)
parente9594f27ccad5667ebc27451f87184296c5cd297 (diff)
Merge branch '5.10' into dev
Conflicts: .qmake.conf Change-Id: I248aa369ba98659a61e563fd29cc811c76ea1e2d
Diffstat (limited to 'src/quick3d/quick3d/items')
-rw-r--r--src/quick3d/quick3d/items/quick3dnodeinstantiator.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/quick3d/quick3d/items/quick3dnodeinstantiator.cpp b/src/quick3d/quick3d/items/quick3dnodeinstantiator.cpp
index b99f6ae75..21f58e56d 100644
--- a/src/quick3d/quick3d/items/quick3dnodeinstantiator.cpp
+++ b/src/quick3d/quick3d/items/quick3dnodeinstantiator.cpp
@@ -135,7 +135,8 @@ void Quick3DNodeInstantiatorPrivate::regenerate()
}
for (int i = 0; i < m_instanceModel->count(); i++) {
- QObject *object = m_instanceModel->object(i, m_async);
+ QObject *object = m_instanceModel->object(i, m_async ?
+ QQmlIncubator::Asynchronous : QQmlIncubator::AsynchronousIfNested);
// If the item was already created we won't get a createdItem
if (object)
_q_createdItem(i, object);
@@ -202,7 +203,8 @@ void Quick3DNodeInstantiatorPrivate::_q_modelUpdated(const QQmlChangeSet &change
m_objects = m_objects.mid(0, index) + movedObjects + m_objects.mid(index);
} else for (int i = 0; i < insert.count; ++i) {
int modelIndex = index + i;
- QObject *obj = m_instanceModel->object(modelIndex, m_async);
+ QObject *obj = m_instanceModel->object(modelIndex, m_async ?
+ QQmlIncubator::Asynchronous : QQmlIncubator::AsynchronousIfNested);
if (obj)
_q_createdItem(modelIndex, obj);
}