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

W3D Animation jumps back one frame when switching states #1389

Open
xezon opened this issue Oct 17, 2022 · 1 comment
Open

W3D Animation jumps back one frame when switching states #1389

xezon opened this issue Oct 17, 2022 · 1 comment
Labels
Bug Something is not working right Executable Is game code related Minor Severity: Minor < Major < Critical < Blocker

Comments

@xezon
Copy link
Collaborator

xezon commented Oct 17, 2022

Reproducible on USA Warfactory Crane. Produce unit, cancel unit, crane animation will jump back one frame.

Potentially related to MAINTAIN_FRAME_ACROSS_STATES flag. Using MAINTAIN_FRAME_ACROSS_STATES2 makes no difference.

generals.2022-10-17.18-50-45-61.mp4
@commy2
Copy link
Collaborator

commy2 commented Aug 16, 2023

This is an off by one error I suppose. The frameno is actually maintained between frames, but it should instead advance by one. Ideally, it would increment by 1, unless the AnimMode of the previous state was ONCE_BACKWARDS or LOOP_BACKWARDS, in which case it should decrement by 1 instead, or if it was MANUAL, in which case the current behavior should remain (no advance of frameno).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is not working right Executable Is game code related Minor Severity: Minor < Major < Critical < Blocker
Projects
None yet
Development

No branches or pull requests

2 participants