Fix gltf animation's 0 frame behavior. 22/288422/2
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 16 Feb 2023 09:10:10 +0000 (18:10 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 16 Feb 2023 10:58:10 +0000 (19:58 +0900)
commit229b6c3c9c782b92c820b186da244bf2dc50dc32
tree763927a592155bcaff1e66f12d859c090916c621
parentf96dc176ca102496ea0c7f895d6d75482fdce5af
Fix gltf animation's 0 frame behavior.

Current dali animation's KeyFrame didn't determine when the time is out of frame.
But gltf 2.0 spec say that we must clamp the time as input range.

To match the spec, make the 0 frame's animation keyframe value.

Change-Id: I2831d9f44c2e21ad12b40fa4b52c1d4e4b1d8e9a
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
automated-tests/resources/AnimatedMorphCubeAnimateNonZeroFrame.gltf [new file with mode: 0644]
automated-tests/src/dali-scene3d/utc-Dali-Gltf2Loader.cpp
dali-scene3d/public-api/loader/gltf2-loader.cpp