Update Spine support to 4.2
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user