Procházet zdrojové kódy

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

PetterGs před 4 roky
rodič
revize
c331675428
1 změnil soubory, kde provedl 1 přidání a 6 odebrání
  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 );