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

[godot] Error during creation of a SpineAnimationTrack node if the skeleton has animations under a folder #2460

Open
misaki-eymard opened this issue Feb 20, 2024 · 0 comments
Assignees
Labels

Comments

@misaki-eymard
Copy link
Collaborator

Description:
When creating a SpineAnimationTrack node for a skeleton that has animations under a folder, errors occur that the animation name is invalid and the animations cannot be played in the Animation Playback Track:

Screenshot 2024-02-20 at 13 14 06

This error does not occur if the animations are moved out of the folder and then the skeleton data is exported again, so it may be that the forward slash / is causing the animation name to be recognized as invalid.

Expected behavior:
Animations under a folder can also be successfully played in the Animation Playback Track.

Steps to reproduce:

  1. Download the attached .zip file: Error-during creation-of-a SpineAnimationTrack-node.zip
  2. Import the contents of the folder "exported-skeleton-data" into your Godot 4.2.1 with C# support project to create a SpineSkeletonDataResource.
  3. Assign the .atlas and .skel files to the SpineSkeletonDataResource you created.
  4. Add a new SpineSprite node in your scene and assign the data resource to it.
  5. Right-click on the SpineSprite and add SpineAnimationTrack as a child node. You should then see the following message in the Output dock:
  Invalid animation name: 'move/run_looped'.
  Invalid animation name: 'move/run'.
  Invalid animation name: 'move/walk_looped'.
  Invalid animation name: 'move/walk'.
  1. If you select the created AnimationPlayer node and check the drop-down list for the Current Animation property, you will see that run and walk are not listed in it.

The original skeleton for this skeleton data can be found in the Error-during creation-of-a SpineAnimationTrack-node.spine contained in the same .zip file.

Version of spine-godot where this issue was found:
Godot 4.2.1 with C# support

This issue was reported on the following thread:
https://esotericsoftware.com/forum/d/25595-unable-to-locate-animations-in-folders-with-animation-player

@badlogic badlogic self-assigned this Mar 6, 2024
@badlogic badlogic added the bug label Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants