diff --git a/examples/js/loaders/GLTFLoader.js b/examples/js/loaders/GLTFLoader.js index b614490edae417c08e91ed7125713c11f2695683..87d9750118d652a40f166a3c292eb8657a2d45c9 100644 --- a/examples/js/loaders/GLTFLoader.js +++ b/examples/js/loaders/GLTFLoader.js @@ -2305,6 +2305,8 @@ THREE.GLTFLoader = ( function () { } else { + console.warn( 'THREE.GLTFLoader: Missing min/max properties for accessor POSITION.' ); + return; } @@ -2342,6 +2344,10 @@ THREE.GLTFLoader = ( function () { box.expandByVector( vector ); + } else { + + console.warn( 'THREE.GLTFLoader: Missing min/max properties for accessor POSITION.' ); + } } diff --git a/examples/jsm/loaders/GLTFLoader.js b/examples/jsm/loaders/GLTFLoader.js index dfe01b400a4608b22cd3ef6afb9f64661b243ccb..7d6ff2e28a5ee2c45155e21b0d039cb284debce7 100644 --- a/examples/jsm/loaders/GLTFLoader.js +++ b/examples/jsm/loaders/GLTFLoader.js @@ -2372,6 +2372,8 @@ var GLTFLoader = ( function () { } else { + console.warn( 'THREE.GLTFLoader: Missing min/max properties for accessor POSITION.' ); + return; } @@ -2409,6 +2411,10 @@ var GLTFLoader = ( function () { box.expandByVector( vector ); + } else { + + console.warn( 'THREE.GLTFLoader: Missing min/max properties for accessor POSITION.' ); + } }