diff --git a/examples/jsm/loaders/KTX2Loader.js b/examples/jsm/loaders/KTX2Loader.js index 0e76cd67ce8e18..290518e9824dbd 100644 --- a/examples/jsm/loaders/KTX2Loader.js +++ b/examples/jsm/loaders/KTX2Loader.js @@ -287,15 +287,15 @@ class KTX2Loader extends Loader { await Promise.all( pendings ); - const texture = mipmaps[0]; - texture.mipmaps = mipmaps.map(dt => { + const texture = mipmaps[ 0 ]; + texture.mipmaps = mipmaps.map( dt => { return { data: dt.source.data, width: dt.source.data.width, height: dt.source.data.height, depth: dt.source.data.depth }; - }); + } ); return texture; }