Update Spine support to 4.2

This commit is contained in:
fgnm
2024-04-19 12:45:00 +02:00
parent 088282ff3e
commit 18edca9e43
8 changed files with 10 additions and 9 deletions
+1
View File
@@ -1,4 +1,5 @@
[0.1.5]
- [BREAK CHANGE] Update Spine runtime support to `4.2.0`
- Add Items Tree search filter
[0.1.4]
Binary file not shown.
+2 -2
View File
@@ -1,10 +1,10 @@
gdxVersion = 1.12.1
lwjgl3Version = 3.3.3
artemisVersion = 2.3.0
spineVersion = 4.1.0
spineVersion = 4.2.0
visuiVersion = 1.5.3
typingLabelVersion = 1.3.0
shapedrawerVersion = 2.5.0
talosVersion = 1.5.0
talosVersion = 1.5.1-SNAPSHOT
gdxTinyVGVersion=7a8927633e
pureMvcVersion=1.0.3-SNAPSHOT
@@ -56,7 +56,7 @@ public class SpineDrawable extends BaseDrawable {
}
private void computeBoundBox() {
skeleton.updateWorldTransform();
skeleton.updateWorldTransform(Skeleton.Physics.update);
Array<Slot> drawOrder = skeleton.getDrawOrder();
minX = Float.MAX_VALUE;
@@ -95,7 +95,7 @@ public class SpineDrawable extends BaseDrawable {
@Override
public void draw(Batch batch, float x, float y, float width, float height) {
skeleton.updateWorldTransform();
skeleton.updateWorldTransform(Skeleton.Physics.update);
animationState.update(Gdx.graphics.getDeltaTime());
animationState.apply(skeleton);
skeleton.setPosition(x, y - 20);
@@ -39,7 +39,7 @@ public class SpineActor extends Actor {
private void computeBoundBox() {
skeleton.setPosition(0, 0);
skeleton.updateWorldTransform();
skeleton.updateWorldTransform(Skeleton.Physics.update);
Array<Slot> drawOrder = skeleton.getDrawOrder();
minX = Float.MAX_VALUE;
@@ -130,7 +130,7 @@ public class SpineActor extends Actor {
@Override
public void act(float delta) {
skeleton.updateWorldTransform(); //
skeleton.updateWorldTransform(Skeleton.Physics.update); //
state.update(delta);
state.apply(skeleton);
super.act(delta);