Prechádzať zdrojové kódy

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

PetterGs 4 rokov pred
rodič
commit
c331675428
1 zmenil súbory, kde vykonal 1 pridanie a 6 odobranie
  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 );