Ploaj / HSDLib

A library that assists with reading/writing HSD DAT files
MIT License
53 stars 16 forks source link

Fixes a problem where trimming an animation would break it #34

Closed AsbjoernB closed 3 years ago

AsbjoernB commented 3 years ago

Whenever you would trim an animations, the keys outside the trimmed range would be removed. This would break the interpolation as well as cause some joints to not have any starting transformation, causing the animation to look like a half T-pose in the beginning.

This fix solves it by adding a key at the new startFrame and endFrame after trimming.