浏览代码

[ios] Fix SkeletonDrawableWrapper.update() to call directly into the drawable.

Mario Zechner 2 周之前
父节点
当前提交
81c9f5630a
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      spine-ios/Sources/SpineiOS/SkeletonDrawableWrapper.swift

+ 1 - 5
spine-ios/Sources/SpineiOS/SkeletonDrawableWrapper.swift

@@ -135,11 +135,7 @@ public final class SkeletonDrawableWrapper: NSObject {
     public func update(delta: Float) {
         if disposed { return }
 
-        animationState.update(delta)
-        _ = animationState.apply(skeleton)
-
-        skeleton.update(delta)
-        skeleton.updateWorldTransform(Physics.update)
+        skeletonDrawable.update(delta);
     }
 
     public func dispose() {