From 0debbc1bff31194f1682b6d9d8249c7b9f356196 Mon Sep 17 00:00:00 2001 From: Janne Kangas Date: Mon, 11 Feb 2019 12:16:35 +0100 Subject: [PATCH] Update visibility also for non-animating slides Force update for objects inside components and groups in non-animating slides. Change-Id: If710b8f1c7441094ab10488cac402a3098dc1df9 Task-id: QT3DS-3002 --- src/runtime/q3dsscenemanager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/runtime/q3dsscenemanager.cpp b/src/runtime/q3dsscenemanager.cpp index 8b6cfbd..f360041 100644 --- a/src/runtime/q3dsscenemanager.cpp +++ b/src/runtime/q3dsscenemanager.cpp @@ -7784,8 +7784,12 @@ void Q3DSSceneManager::setPendingVisibilities() // if there's no animations there's no changes, but there's one exception, and that's visibility // updates due to start and end times for a node, these still need to cause an update when there's no // animations and that's why we have this funky looking call to notifyPropertyChanges() here. - if (noAnimations) + if (noAnimations) { it.key()->notifyPropertyChanges({{QString()}}, 0); + // Trigger updates all the way to rendering by force setting the slide time to current + // position. + m_slidePlayer->setSlideTime(m_currentSlide, m_slidePlayer->position(), true); + } } m_pendingObjectVisibility.clear(); -- 2.10.1.windows.1