godot-4-importality icon indicating copy to clipboard operation
godot-4-importality copied to clipboard

Aseprite to Spriteframes broken in 4.5?

Open elvisish opened this issue 8 months ago • 3 comments

Is it totally broken in 4.5?

elvisish avatar Apr 29 '25 17:04 elvisish

I'm finding Aseprite to Spriteframes is acting weird in 4.4. What exactely is happening for you?

zomby138 avatar May 14 '25 21:05 zomby138

I use the Master branch of Godot, which I periodically rebuild. Right now, the Help -> Copy System Info menu item gives me the following data:

Godot v4.5.dev (42c7f1442) Windows 10 (build 19045) Multi-window, 2 monitors OpenGL 3 (Compatibility) NVIDIA GeForce GTX 1660 Ti (NVIDIA; 32.0.15.7652) Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (12 threads)

I tried adding the latest version of Importality (master branch) and it works fine with the SpriteFrames resource. What exactly is wrong with you? Please describe the problem in more detail 🙏

https://github.com/user-attachments/assets/2f633a52-4ac4-4075-b33a-a25b3cc0c33c

nklbdev avatar Jun 15 '25 17:06 nklbdev

I was investigating a little the issue, and despite i dont know yet what causes it, i discovered changing the save extension from scn to tscn seems to workaround the issue res://addons/nklbdev.importality/import/sprite_2d_with_animation_player.gd

@tool
extends "_sprite_with_animation_player.gd"

func _init() -> void:
-	super("Sprite2D with AnimationPlayer", "PackedScene", "scn")
+	super("Sprite2D with AnimationPlayer", "PackedScene", "tscn")

This for all importers that saves to scene

Edit Some more information, i copypasted the scn file from the .godot folder into the project to inspect it. It seems the problem is the subresource was never added as a dependency of the scene

Image

MarianoGnu avatar Jul 15 '25 23:07 MarianoGnu