Explorar o código

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

PetterGs %!s(int64=4) %!d(string=hai) anos
pai
achega
c331675428
Modificáronse 1 ficheiros con 1 adicións e 6 borrados
  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 );