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);