summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntti Määttä <antti.maatta@qt.io>2019-10-18 08:22:12 +0300
committerAntti Määttä <antti.maatta@qt.io>2019-10-18 12:48:05 +0300
commit938c3e6f4b94713516ed7ba88f7118d92958f5bb (patch)
treeafbec78ed146d29e19c69a69913ac03686ce0469
parent6336fa98ca7340fe65ab252cc576c3d10c9ddb76 (diff)
Fix datainput controlled component activity changev2.5.0-rc3v2.5.0-rc2
Datainput control check needs to be done in the Update too. Task-number: QT3DS-3988 Task-number: QT3DS-3989 Change-Id: Iab628ab5fcab57379c23ed8122d24d37f66b303b Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io> Reviewed-by: Pasi Keränen <pasi.keranen@qt.io>
-rw-r--r--src/runtime/Qt3DSActivationManager.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/runtime/Qt3DSActivationManager.cpp b/src/runtime/Qt3DSActivationManager.cpp
index 9b74ea5..cf14820 100644
--- a/src/runtime/Qt3DSActivationManager.cpp
+++ b/src/runtime/Qt3DSActivationManager.cpp
@@ -664,7 +664,12 @@ struct STimeContext
parentActive = theParent->IsGlobalActive();
bool wasActive = theContextNode.IsGlobalActive();
- bool isActive = theContextNode.IsGlobalActive(parentActive);
+ bool isControlledByDi
+ = m_ControlledList.contains(theContextNode) && theContextNode.m_OnMaster;
+
+ // Override visibility for master slide elements that have datainput eyeball controller.
+ bool isActive = isControlledByDi ? theContextNode.IsControlledActive()
+ : theContextNode.IsGlobalActive(parentActive);
bool activationChange = isActive != wasActive;
inPerfTimer.Update("ActivationManager - Update Initial Vars",
qt3ds::foundation::Time::getCurrentCounterValue() - start);