Initial support to Spine 4.1.0

This commit is contained in:
fgnm
2022-07-21 14:59:53 +02:00
parent 319541a285
commit 28c9b3701c
9 changed files with 12 additions and 8 deletions
+3
View File
@@ -1,3 +1,6 @@
[0.1.2]
- [BREAK CHANGE] Update Spine support to `4.1.0`
[0.1.1]
- Allow Box2D bodies inside composite items. Must uncheck composite's automatic resize.
+1 -1
View File
@@ -1,7 +1,7 @@
gdxVersion = 1.11.0
lwjgl3Version = 3.3.1
artemisVersion = 2.3.0
spineVersion = 4.0.18.1
spineVersion = 4.1.0
visuiVersion = 1.5.0
typingLabelVersion = 1.3.0
shapedrawerVersion = 2.5.0
@@ -51,9 +51,10 @@ public class SpineActor extends Actor {
float[] vertices = null;
Attachment attachment = slot.getAttachment();
if (attachment instanceof RegionAttachment) {
RegionAttachment region = (RegionAttachment)attachment;
verticesLength = 8;
vertices = temp.setSize(8);
((RegionAttachment)attachment).computeWorldVertices(slot.getBone(), vertices, 0, 2);
region.computeWorldVertices(slot, vertices, 0, 2);
} else if (attachment instanceof MeshAttachment) {
MeshAttachment mesh = (MeshAttachment)attachment;
verticesLength = mesh.getWorldVerticesLength();