rayxuln / spine-runtime-for-godot

This project is a module for godot that allows it to load/play Spine skeleton animation.
MIT License
93 stars 22 forks source link

Mix and Match is broken #12

Closed scottkunkel closed 4 years ago

scottkunkel commented 4 years ago

this will crash on [0] ??? [1] SpineSprite::update_mesh_from_skeleton (C:\Projects\godot\modules\spine_runtime\SpineSprite.cpp:342)

    var hair: SpineSkin = spine_sprite.get_skeleton().get_data().find_skin("hair/brown")
    var at = hair.get_attachments()
    while at.has_next():
        var at1 = at.next()
        print(at1.get_attachment().get_attachment_name())
    spine_sprite.get_skeleton().set_skin(hair)

CustomSkinProject.zip

rayxuln commented 4 years ago

The code works fine in my godot build. I don't know if this issue is a random bug...

jonchun commented 4 years ago

Doesn't crash for me either.

image

scottkunkel commented 4 years ago

works now