I think initially I had just forgotten to refresh the Spine dependency and the function wasn’t found.
Now this code:
gui.set_spine_scene(node, "lime_blob")
Causes a crash:
Assertion failed: (Capacity() - Size() > 0), function Push, file array.h, line 501.
INFO:CRASH: Successfully wrote Crashdump to file: /Users/niclasaberg/Library/Application Support/Defold/_crash
ERROR:CRASH: CALL STACK:
# 0 pc 0x30bd7d libxpc.dylib _sigtramp+29
I’ve double checked that there is a spine scene with the lime_blob
id.
I can’t find the gui.set_spine_scene() in the reference anymore, maybe because of the Spine move?
Update: It seems the crash only happens when the node has been cloned.
This works:
local node = gui.get_node("character")
gui.set_spine_scene(node, "lime_blob")
This crashes:
local node_to_clone = gui.get_node("character")
local node = gui.clone(node_to_clone)
gui.set_spine_scene(node, "lime_blob")