summaryrefslogtreecommitdiffstats
path: root/src/runtime/q3dsslideplayer_p.h
diff options
context:
space:
mode:
authorChristian Strømme <christian.stromme@qt.io>2018-09-06 12:51:33 +0200
committerAntti Kokko <antti.kokko@qt.io>2018-09-07 06:52:31 +0000
commit7160a80a91b52035fd222bca84bf5ed7a4d442d5 (patch)
tree76109b51ff29a7dc885391091e74f72d5e8e2503 /src/runtime/q3dsslideplayer_p.h
parent7151fe87009e1f863b053ebd65c2bf46abf8df6f (diff)
Don't use dynamic values when entering the first slide
When entering the first slide there's no previous values available, so the initial default value was used. Instead of applying these values we should just skip updating the dynamic values when there's no previous slide. Task-number: QT3DS-2209 Change-Id: I5b8d184c3c27d37758259a0585948a7be9580aff Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/runtime/q3dsslideplayer_p.h')
-rw-r--r--src/runtime/q3dsslideplayer_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/q3dsslideplayer_p.h b/src/runtime/q3dsslideplayer_p.h
index ddcc096..92e585b 100644
--- a/src/runtime/q3dsslideplayer_p.h
+++ b/src/runtime/q3dsslideplayer_p.h
@@ -151,7 +151,7 @@ private:
void setObjectVisibility(Q3DSGraphObject *obj, bool parentVisible, bool forceUpdate, float time);
void updateObjectVisibility(Q3DSGraphObject *obj, bool visible);
bool isSlideVisible(Q3DSSlide *slide);
- void processPropertyChanges(Q3DSSlide *currentSlide);
+ void processPropertyChanges(Q3DSSlide *currentSlide, Q3DSSlide *previousSlide);
void evaluateDynamicObjectVisibility(Q3DSGraphObject *obj);
struct Data {