Skip to content

Commit ffb0dc6

Browse files
committed
published
1 parent 5f64ba8 commit ffb0dc6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/SimpleBabylonTileContent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class SimpleBabylonTileContent {
1919

2020
private async loadContent(gltfData: Uint8Array): Promise<void> {
2121
try {
22-
const blob = new Blob([gltfData], { type: 'model/gltf-binary' });
22+
const blob = new Blob([gltfData as any], { type: 'model/gltf-binary' });
2323
const objectURL = URL.createObjectURL(blob);
2424

2525
const result = await SceneLoader.ImportMeshAsync(

src/SimpleIntegration.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class SimpleIntegration {
1919
private renderTilesetPassState: any;
2020
private frameCount: number = 0;
2121
private lastFrameNumber: number = 0;
22-
private debugVisualization: DebugVisualization;
22+
private debugVisualization!: DebugVisualization;
2323
private addedCredits: Set<string> = new Set();
2424

2525
private addCreditToHTML(credit: any): void {
@@ -67,7 +67,7 @@ export class SimpleIntegration {
6767
const babylonPos = this.camera.position;
6868

6969
// For UniversalCamera, get the actual look direction from position to target
70-
const babylonTarget = this.camera.getTarget();
70+
const babylonTarget = (this.camera as any).getTarget();
7171
const babylonDir = babylonTarget.subtract(babylonPos).normalize();
7272
const babylonUp = this.camera.upVector || Vector3.Up();
7373

@@ -431,7 +431,7 @@ export class SimpleIntegration {
431431
]);
432432

433433
// Apply the transform to all meshes
434-
meshes.forEach((mesh, index) => {
434+
meshes.forEach((mesh) => {
435435
if (mesh && mesh.setPreTransformMatrix) {
436436
mesh.setPreTransformMatrix(babylonMatrix);
437437
} else if (mesh) {

0 commit comments

Comments
 (0)