Skip to content
Snippets Groups Projects
Commit 761cbf4d authored by Nicolas Cadart's avatar Nicolas Cadart
Browse files

[fix][ui][change] Change animation PlayMode/Duration when speedFactor/timeRange are changed

Animation PlayMode and Duration were reset each time Play/Pause buttons were clicked.
This prevented using general paraview animations by manually chosing animation settings.

Now, the animation PlayMode and Duration is directly updated when the user selects a different playing speed,
and Play/Pause buttons have trivial behavior of invoking Play/Pause commands.
The animation Duration is also updated when timesteps range changes, e.g. when a new pcap is loaded.

NOTE : When upgrading LVCore in your specific LidarView based application,
you should consider removing the line `app.scene.UpdateAnimationUsingDataTimeSteps()`
in function `applogic.openPCAP()`. Without this change, the speed mode will be set to 'All Frames'
when a new pcap will be loaded. By removing this line, the speed mode and animation settings
won't be changed, and will be kept as user set them before.
parent a9bc1cec
No related branches found
No related tags found
1 merge request!148Using custom animation play mode in LidarView
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment