瀏覽代碼

Quick Nit

sebavan 5 年之前
父節點
當前提交
49a986cea7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      serializers/src/glTF/2.0/glTFAnimation.ts

+ 1 - 1
serializers/src/glTF/2.0/glTFAnimation.ts

@@ -243,7 +243,7 @@ export class _GLTFAnimation {
             if (morphTargetManager) {
                 for (let i = 0; i < morphTargetManager.numTargets; ++i) {
                     const morphTarget = morphTargetManager.getTarget(i);
-                    for (let animation of morphTarget.animations) {
+                    for (const animation of morphTarget.animations) {
                         const combinedAnimation = new Animation(`${animation.name}`,
                             "influence",
                             animation.framePerSecond,