Hello! I would like to get eyes on this PR:
EsotericSoftware/spine-runtimes2399
Which is related to this issue:
EsotericSoftware/spine-runtimes2398
The Spine documentation mentions that it should be possible for a runtime to allow the creation and use of custom attachments with slots. This is true, but unsafe in the spine-c runtime because spSlot_setAttachment does not increment the attachment refcount. This means other parts of spine might dispose the attachment and deallocate it while it is still in use.
The PR fixes the issue and, with the fix, custom attachments are safe to use.
I am using spine for a production game using Rust and the rust spine runtime is transpiled from spine-c. We'd love to see this fix adopted so that we don't have to work from a fork of spine-c to get the custom attachment feature our game requires!
Thank you!