diff options
author | Tony Leinonen <tony.leinonen@qt.io> | 2021-03-15 13:43:06 +0200 |
---|---|---|
committer | Tony Leinonen <tony.leinonen@qt.io> | 2021-03-19 16:42:36 +0200 |
commit | 2f19925eef6dc37feefdc130588638ca1640de6e (patch) | |
tree | dbbafed9070388d06e1cc69ae616b868ee2085ab /src/runtime/Qt3DSActivationManager.cpp | |
parent | e9da995ae5de6ca37e624adcba23808cd7a0ff57 (diff) |
Remove overriding code
ComponentManager code was overriding gotoSlide data which caused problems with
slide changes.
If check was forcing queued slide changes to slide 1 when object was
first activated.
Task-number: QT3DS-4221
Change-Id: I614fd5e50dc96db0930de860a90a5f99656293f3
Reviewed-by: Antti Määttä <antti.maatta@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/runtime/Qt3DSActivationManager.cpp')
-rw-r--r-- | src/runtime/Qt3DSActivationManager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/runtime/Qt3DSActivationManager.cpp b/src/runtime/Qt3DSActivationManager.cpp index f03eff1..9aa16f5 100644 --- a/src/runtime/Qt3DSActivationManager.cpp +++ b/src/runtime/Qt3DSActivationManager.cpp @@ -690,8 +690,7 @@ struct STimeContext // When the component is activated the first time go to the first slide // Subsequent activations should continue from the deactivated slide - if (theContextNode.GetCurrentSlide() == 0 - || inComponentManager.hasSlideChangeQueued(&theContextNode)) { + if (theContextNode.GetCurrentSlide() == 0) { inComponentManager.GotoSlideIndex(&theContextNode, 1, false); } inComponentManager.applyQueuedChanges(&theContextNode); |