diff options
author | Adam Treat <adam.treat@qt.io> | 2018-03-13 11:14:47 -0400 |
---|---|---|
committer | Adam Treat <adam.treat@qt.io> | 2018-03-14 12:51:44 +0000 |
commit | 830f15c5cbdbee35f36d8e48cc70a9923389742c (patch) | |
tree | 8c6ddf4f7ebef7bde6772c6fa2f48bc7e510a840 /src/runtime/q3dsslideplayer_p.h | |
parent | 758a9017b738408c513b06425137bd6d891ac3f6 (diff) |
Fix bug where component and child objects on slidedeck were out of sync
When evaluating whether a node is visible, we have to take into account
whether the node's parent if it is part of a component is itself
visible.
Change-Id: I06ee8a866db686b6ad709480030908657bb772b2
Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'src/runtime/q3dsslideplayer_p.h')
-rw-r--r-- | src/runtime/q3dsslideplayer_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/q3dsslideplayer_p.h b/src/runtime/q3dsslideplayer_p.h index 3bf3700..085d6f6 100644 --- a/src/runtime/q3dsslideplayer_p.h +++ b/src/runtime/q3dsslideplayer_p.h @@ -140,7 +140,7 @@ private: bool forceUpdate = false); // TODO: Move out to a "slide manager"? - void setSlideTime(Q3DSSlide *slide, float time); + void setSlideTime(Q3DSSlide *slide, float time, bool parentVisible = true); void sendPositionChanged(Q3DSSlide *slide, float pos); void updateNodeVisibility(Q3DSNode *node, bool visible); bool isSlideVisible(Q3DSSlide *slide); |