From 3d2fad56e11e8505ff4d8eef5ca4bc057578f0e3 Mon Sep 17 00:00:00 2001 From: Emmanuel Lee Date: Mon, 1 May 2023 15:03:52 -0400 Subject: [PATCH] Update examples/jsm/loaders/KTX2Loader.js Co-authored-by: Levi Pesin <35454228+LeviPesin@users.noreply.github.com> --- examples/jsm/loaders/KTX2Loader.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }