summaryrefslogtreecommitdiffstats
path: root/src/runtime/Qt3DSQmlEngine.cpp
diff options
context:
space:
mode:
authorAntti Määttä <antti.maatta@qt.io>2019-11-14 09:13:39 +0200
committerAntti Määttä <antti.maatta@qt.io>2019-11-20 16:09:00 +0200
commitc4d0de4f1c2d20a10abfb6f385ba1efa3b0f9a1e (patch)
tree86a372a85befa8530127b458646d9a20ff39fdfd /src/runtime/Qt3DSQmlEngine.cpp
parenta0570efd0bb4f424d763818b5dfca1cffadc6c5c (diff)
Allow setting timeline value when element is about to activate
Task-number: QT3DS-4001 Change-Id: I9fbb1367999d2a3e3bea6520f9e59a820ef50c28 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/runtime/Qt3DSQmlEngine.cpp')
-rw-r--r--src/runtime/Qt3DSQmlEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/Qt3DSQmlEngine.cpp b/src/runtime/Qt3DSQmlEngine.cpp
index 994354b..5ab5c10 100644
--- a/src/runtime/Qt3DSQmlEngine.cpp
+++ b/src/runtime/Qt3DSQmlEngine.cpp
@@ -1968,7 +1968,7 @@ bool CQmlEngineImpl::GetSlideInfo(const char *element, int &currentIndex, int &p
void CQmlEngineImpl::GotoTime(const char *component, const Q3DStudio::FLOAT time)
{
TElement *theTarget = getTarget(component);
- if (theTarget && theTarget->GetActive()) {
+ if (theTarget && (theTarget->GetActive() || theTarget->AboutToActivate())) {
UVariant theArg1;
UVariant theArg2;