浏览代码

Fix unit test

Gary Hsu 6 年之前
父节点
当前提交
adc6165b76
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tests/unit/babylon/src/Animations/babylon.animation.tests.ts

+ 1 - 0
tests/unit/babylon/src/Animations/babylon.animation.tests.ts

@@ -42,6 +42,7 @@ describe('Babylon Animation', function() {
         it('one key', () => {
             const scene = new BABYLON.Scene(subject);
             const box = BABYLON.Mesh.CreateBox("box", 1, scene);
+            scene.createDefaultCamera();
             const animation = new BABYLON.Animation("anim", "position.x", 1, BABYLON.Animation.ANIMATIONTYPE_FLOAT);
             animation.setKeys([{ frame: 0, value: 1 }]);
             box.animations.push(animation);