|
@@ -929,7 +929,7 @@ var importNode = (gltfRuntime: IGLTFRuntime, node: IGLTFNode, id: string, parent
|
|
|
|
|
|
orthoCamera.name = node.name || "";
|
|
|
orthoCamera.mode = Camera.ORTHOGRAPHIC_CAMERA;
|
|
|
- orthoCamera.attachControl(<HTMLElement>gltfRuntime.scene.getEngine().getInputElement());
|
|
|
+ orthoCamera.attachControl();
|
|
|
|
|
|
lastNode = orthoCamera;
|
|
|
}
|
|
@@ -938,7 +938,7 @@ var importNode = (gltfRuntime: IGLTFRuntime, node: IGLTFNode, id: string, parent
|
|
|
var persCamera = new FreeCamera(node.camera, Vector3.Zero(), gltfRuntime.scene, false);
|
|
|
|
|
|
persCamera.name = node.name || "";
|
|
|
- persCamera.attachControl(<HTMLElement>gltfRuntime.scene.getEngine().getInputElement());
|
|
|
+ persCamera.attachControl();
|
|
|
|
|
|
if (!perspectiveCamera.aspectRatio) {
|
|
|
perspectiveCamera.aspectRatio = gltfRuntime.scene.getEngine().getRenderWidth() / gltfRuntime.scene.getEngine().getRenderHeight();
|