diff options
author | Mike Krus <mike.krus@kdab.com> | 2019-10-24 12:28:17 +0100 |
---|---|---|
committer | Mike Krus <mike.krus@kdab.com> | 2019-10-25 10:58:20 +0100 |
commit | 0d5f53df8ad7e2e20fcefb35272d1a4b31a5c036 (patch) | |
tree | 594bcb5a2d841573d400501a6944aeb555006419 /src/render | |
parent | 720ef16d559e5ed7eb9055808558d010ee0aa2f0 (diff) |
Fix missing status change in QSceneLoader
Status was only applied after the loading was completed. So when the
source changed to another file, the status would not change (stay Ready).
Furthermore, the Loading status was never set.
Now set the status to Loading when changing the source and getting
the backend ready to load.
Change-Id: I997aa5c4e04d79f268cd7a793ffa3f45dc4427e8
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/io/scene.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/io/scene.cpp b/src/render/io/scene.cpp index bd76b136f..1a2000bbb 100644 --- a/src/render/io/scene.cpp +++ b/src/render/io/scene.cpp @@ -79,6 +79,9 @@ void Scene::syncFromFrontEnd(const Qt3DCore::QNode *frontEnd, bool firstTime) m_sceneManager->addSceneData(m_source, peerId()); else m_sceneManager->startSceneDownload(m_source, peerId()); + + const auto d = static_cast<const QSceneLoaderPrivate *>(Qt3DCore::QNodePrivate::get(node)); + const_cast<QSceneLoaderPrivate *>(d)->setStatus(QSceneLoader::Loading); } markDirty(AbstractRenderer::AllDirty); } |