diff options
author | Christian Strømme <christian.stromme@qt.io> | 2018-09-13 14:48:09 +0200 |
---|---|---|
committer | Christian Stromme <christian.stromme@qt.io> | 2018-09-17 12:43:25 +0000 |
commit | 80ff8e0cffdef6fa4636cbbfeb707166ce3fa9fa (patch) | |
tree | 6fe7424dd8674a73d9e6c7826f8a7739e93d29af /tests | |
parent | b31798edbd720e7e09cd9e29b261d6b71e042339 (diff) |
Fix visibility updates for slides without animation tracks
If there's no animations the nodes won't be marked as dirty, as they
are not expected to be changing, but there's at least one exception
and that's when the start and end time are not the same as the
start and end time of the slide.
Task-number: QT3DS-2022
Change-Id: I4cc634c224d41028d5401f28b1b6d9fe348e2f02
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scenes/slideplayer/visibility/noanimtracks.uip | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/scenes/slideplayer/visibility/noanimtracks.uip b/tests/scenes/slideplayer/visibility/noanimtracks.uip new file mode 100644 index 0000000..6d78587 --- /dev/null +++ b/tests/scenes/slideplayer/visibility/noanimtracks.uip @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<UIP version="4" > + <Project > + <ProjectSettings author="" company="" presentationWidth="800" presentationHeight="600" maintainAspect="False" > + <CustomColors count="16" >#7391ff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff #ffffff</CustomColors> + </ProjectSettings> + <Graph > + <Scene id="Scene" > + <Layer id="Layer" > + <Camera id="Camera" /> + <Light id="Light" /> + <Model id="Sphere" > + <Material id="Default" name="Default" /> + </Model> + <Model id="Cube" > + <Material id="Default_001" name="Default" /> + </Model> + </Layer> + </Scene> + </Graph> + <Logic > + <State name="Master Slide" component="#Scene" > + <Add ref="#Layer" endtime="9483" /> + <Add ref="#Camera" endtime="9483" /> + <Add ref="#Light" endtime="9483" /> + <State id="Scene-Slide1" name="Slide1" > + <Set ref="#Layer" endtime="8500" /> + <Set ref="#Camera" endtime="8500" /> + <Set ref="#Light" endtime="8500" /> + <Add ref="#Sphere" name="Sphere" endtime="4500" sourcepath="#Sphere" starttime="2500" /> + <Add ref="#Default" /> + <Add ref="#Cube" name="Cube" endtime="6500" position="100 100 0" sourcepath="#Cube" starttime="3500" /> + <Add ref="#Default_001" /> + </State> + </State> + </Logic> + </Project> +</UIP> |