Improve trim mode detection and fix some trim test file naming mix ups
In Lottie, parallel trim mode is the default. Sequential mode should
be enabled only if the "m" property has exactly the value 2. The code
would fall back to sequential also for other, undefined values; this
commit fixes that.
As a driveby, it also fixes the environment variable mode override
where the two modes were mixed up. It also fixes the naming of some
test lottie files where likewise the two mode names were swapped.
Change-Id: Ifd17e3a63d9251fa488a5eee995d5621f4ee59cc
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
| commit | 71f46dea995d373333667975cc784e1f20fa2187 |
| parent | 238140be55096a20b95a9443707c76fc61a526ca |
| author | Eirik Aavitsland <eirik.aavitsland@qt.io> |
| committer | Eirik Aavitsland <eirik.aavitsland@qt.io> |
| commit time | Fri, 26 Sep 2025 13:14:24 +0200 |
- M src/lottie/qlottietrimpath.cpp
- M src/lottie/qlottietrimpath_p.h
- M tests/baseline/data/docsamples/mod/trim_parallel.json
- M tests/baseline/data/docsamples/mod/trim_sequential.json
- R100 tests/baseline/data/original/trim_path2_parallel.json
- R100 tests/baseline/data/original/trim_path_sequential2.json
- R100 tests/manual/testApp/trim_path2_parallel.json
- R100 tests/manual/testApp/trim_path_sequential2.json