summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Leinonen <tony.leinonen@qt.io>2021-03-15 13:43:06 +0200
committerTony Leinonen <tony.leinonen@qt.io>2021-03-19 16:42:36 +0200
commit2f19925eef6dc37feefdc130588638ca1640de6e (patch)
treedbbafed9070388d06e1cc69ae616b868ee2085ab
parente9da995ae5de6ca37e624adcba23808cd7a0ff57 (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>
-rw-r--r--src/runtime/Qt3DSActivationManager.cpp3
-rw-r--r--src/runtime/Qt3DSComponentManager.cpp7
2 files changed, 1 insertions, 9 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);
diff --git a/src/runtime/Qt3DSComponentManager.cpp b/src/runtime/Qt3DSComponentManager.cpp
index 03c7b2c..9bbff99 100644
--- a/src/runtime/Qt3DSComponentManager.cpp
+++ b/src/runtime/Qt3DSComponentManager.cpp
@@ -94,13 +94,6 @@ void CComponentManager::GotoSlideIndex(TElement *inComponent,
}
SComponentGotoSlideData theGotoSlideData(inGotoData);
-
- TComponentGotoSlideDataMap::iterator iter = m_ComponentInitialSlideMap.find(inComponent);
- if (iter != m_ComponentInitialSlideMap.end()) {
- theGotoSlideData = iter->second;
- m_ComponentInitialSlideMap.erase(iter);
- }
-
const UINT8 theCurrentSlideIndex = theComponent->GetCurrentSlide();
QString elementPath;