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

Marking animation as loop in Editor does not work. We have to set loop = true in code. #39526

Closed
jcarlosrc opened this issue Jun 14, 2020 · 5 comments

Comments

@jcarlosrc
Copy link

Godot version:

Beta 3.2.2-beta4 for Windows.

OS/device including version:

Windows 10

Issue description:

I marked animations as loop in Editor. They play as expected in the Editor. However, they stop in the game. I have to set them to loop in code to work.

Steps to reproduce:
In the included code, check Cube scene check_loop_bug boolean to true and play the game. We can see animations not looping. When this boolean is false game works as expected because loop is set in code.

Minimal reproduction project:
Here it is:
Bug-Report-Loop.zip

@Sl3dge78
Copy link
Contributor

This is the same issue as #20467
The animation Player in the given scene is imported from the .glb file.

@kayomn
Copy link
Contributor

kayomn commented Jan 14, 2021

Can confirm this problem is still present in 3.2.3 with both GLB and FBX.

@kayomn
Copy link
Contributor

kayomn commented Jan 14, 2021

Temporary workaround for anyone who encounters this issue.

Export your animations with a -loop suffix on the respective animation clip for your model and Godot will automatically import it as a looping clip.

@akien-mga
Copy link
Member

Duplicate of #34394

@akien-mga akien-mga marked this as a duplicate of #34394 Apr 6, 2022
@ghost
Copy link

ghost commented Oct 16, 2022

Godot version:

Beta 3.2.2-beta4 for Windows.

OS/device including version:

Windows 10

Issue description:

I marked animations as loop in Editor. They play as expected in the Editor. However, they stop in the game. I have to set them to loop in code to work.

Steps to reproduce: In the included code, check Cube scene check_loop_bug boolean to true and play the game. We can see animations not looping. When this boolean is false game works as expected because loop is set in code.

Minimal reproduction project: Here it is: Bug-Report-Loop.zip

Same issue. How to loop it in code? I get error
Invalid set index 'loop' (on base: 'Nil') with value of type 'bool'.

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

No branches or pull requests

5 participants