Garrett Johnson 4 vuotta sitten
vanhempi
commit
b33fef00d0

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 1 - 1
example/bundle/example.e31bb0bc.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 1 - 1
example/bundle/example.e31bb0bc.js.map


+ 2 - 1
example/index.js

@@ -86,6 +86,8 @@ function reinstantiateTiles() {
 
 	}
 
+	tiles = new TilesRenderer( url );
+
 	// Note the DRACO compression files need to be supplied via an explicit source.
 	// We use unpkg here but in practice should be provided by the application.
 	const dracoLoader = new DRACOLoader();
@@ -94,7 +96,6 @@ function reinstantiateTiles() {
 	const loader = new GLTFLoader( tiles.manager );
 	loader.setDRACOLoader( dracoLoader );
 
-	tiles = new TilesRenderer( url );
 	tiles.fetchOptions.mode = 'cors';
 	tiles.manager.addHandler( /\.gltf$/, loader );
 	offsetParent.add( tiles.group );