소스 검색

Removed bad attempt at fixing initial loading of Ion asset from urlHash

PetterGs 4 년 전
부모
커밋
c331675428
1개의 변경된 파일1개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 6
      example/ionExample.js

+ 1 - 6
example/ionExample.js

@@ -285,12 +285,7 @@ function init() {
 	scene.add( rayIntersect );
 	rayIntersect.visible = false;
 
-	new Promise( r => setTimeout( r, 1 ) )
-		.then( () => {
-
-			reinstantiateTiles();
-
-		} );
+	reinstantiateTiles();
 
 	onWindowResize();
 	window.addEventListener( 'resize', onWindowResize, false );