Browse Source

fixing tests

Raanan Weber 7 years ago
parent
commit
4e94990265
2 changed files with 7 additions and 0 deletions
  1. 3 0
      Viewer/src/managers/sceneManager.ts
  2. 4 0
      src/Engine/babylon.nullEngine.ts

+ 3 - 0
Viewer/src/managers/sceneManager.ts

@@ -783,6 +783,9 @@ export class SceneManager {
             this.camera = <ArcRotateCamera>this.scene.activeCamera!;
             this.camera.setTarget(Vector3.Zero());
         }
+        if (!this.camera) {
+            this.camera = <ArcRotateCamera>this.scene.activeCamera!;
+        }
         if (cameraConfig.position) {
             let newPosition = this.camera.position.clone();
             extendClassWithConfig(newPosition, cameraConfig.position);

+ 4 - 0
src/Engine/babylon.nullEngine.ts

@@ -397,6 +397,10 @@
             return vbo;
         }
 
+        public updateDynamicTexture(texture: Nullable<InternalTexture>, canvas: HTMLCanvasElement, invertY: boolean, premulAlpha: boolean = false, format?: number): void {
+
+        }
+
         public updateDynamicIndexBuffer(indexBuffer: WebGLBuffer, indices: IndicesArray, offset: number = 0): void {
         }