From 1b5c7a97a37d3cf680b773e1f390140d13fbc64c Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Fri, 11 Jun 2021 12:00:43 +0200 Subject: [PATCH] GLTFLoader: Return null when failing to load textures --- examples/jsm/loaders/GLTFLoader.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/jsm/loaders/GLTFLoader.js b/examples/jsm/loaders/GLTFLoader.js index 8611db3edd..24a34e2111 100644 --- a/examples/jsm/loaders/GLTFLoader.js +++ b/examples/jsm/loaders/GLTFLoader.js @@ -2643,6 +2643,10 @@ class GLTFParser { return texture; + } ).catch( function () { + + return null; + } ); this.textureCache[ cacheKey ] = promise; -- GitLab