Hello, I am having problems with the godot runtimes with skins. calling set_skin with a custom skin will randomly cause a crash with no output and no errors in the debugger
I set up a simple example, here is the Spine project:
https://i.imgur.com/1RDC80Y.gif
It's a simple skeleton with 3 skins controlled by a skin placeholder that each show a colored dot.
Here is the godot scene: a Node2D with 2 children, a SpineSprite and a Button to switch skins
https://i.imgur.com/LBeCWlz.gif
The script for reference: (switches between r and g skins, I used mix_and_match example as a template)
extends Node2D
onready var r_skin = $skeleton.get_skeleton().get_data().find_skin("r")
onready var g_skin = $skeleton.get_skeleton().get_data().find_skin("g")
var r_true=true
func _on_skinswitch_pressed():
var custom_skin = $skeleton.new_skin("customskin")
if r_true:
custom_skin.add_skin(g_skin)
r_true=false
else:
custom_skin.add_skin(r_skin)
r_true=true
$skeleton.get_skeleton().set_skin(custom_skin)
$skeleton.get_skeleton().set_slots_to_setup_pose()
When the code in this script is run, it can randomly cause the program to hang and crash with no output/errors
https://i.imgur.com/J7ju4H4.gif
I say random because it can happen after 1 swap, or after multiple swaps.