Skip to content

[animation-mixer] Animation cannot be set and unpaused in the same change #354

@EPurwanto

Description

@EPurwanto

I have an animation that I need to start paused on the first frame with animation-mixer="timescale: 0;"

After some events, I want to set the animation clip to play and unpause it, by calling el.setAttribute("animation-mixer", {clip: "some_clip", timeScale: 1}), however there is a data.timeScale !== 1 check in the playAction function that ignores the change to timeScale.

I'm not sure if it would be better to change that check to data.timeScale !== action.effectiveTimeScale, remove it entirely, or change the update function to apply timescale changes there.

For now, I'm working around the issue by setting the clip in the starting settings as animation-mixer="clip: some_clip; timescale: 0;, but that only works because I know what clip I want to play.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions