Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to save animation containing a type 2 frame. #6

Open
mrudat opened this issue Jan 31, 2021 · 0 comments
Open

Fails to save animation containing a type 2 frame. #6

mrudat opened this issue Jan 31, 2021 · 0 comments

Comments

@mrudat
Copy link

mrudat commented Jan 31, 2021

Fails to save an animation where frameType is not 1 (the data gets discarded on load).

int numReferenceFrameSamples = this.referenceFrameSamples.Length;

The following allows runs without error but almost certainly results in an invalid file. The new file causes the player to run in place.

        int numReferenceFrameSamples = this.referenceFrameSamples != null ? this.referenceFrameSamples.Length : 0;

An example of such an animation is: meshes/actors/character/Animations/MT/Neutral/female/RunForward.hkx from mcgFemaleWalk.

The data that is discarded appears to be a hkaDirectionalReferenceFrame; I'm using hkxPack to copy the data from the old to the new file to see if that will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant