File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments