Skip to content

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

Description

@mrudat

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions