Browse Source

Merge pull request #18179 from Mugen87/dev29

GLTFLoader: Improve logging in computeBounds().
Michael Herzog 5 years ago
parent
commit
5d89895feb
2 changed files with 12 additions and 0 deletions
  1. 6 0
      examples/js/loaders/GLTFLoader.js
  2. 6 0
      examples/jsm/loaders/GLTFLoader.js

+ 6 - 0
examples/js/loaders/GLTFLoader.js

@@ -2305,6 +2305,8 @@ THREE.GLTFLoader = ( function () {
 
 
 			} else {
 			} else {
 
 
+				console.warn( 'THREE.GLTFLoader: Missing min/max properties for accessor POSITION.' );
+
 				return;
 				return;
 
 
 			}
 			}
@@ -2342,6 +2344,10 @@ THREE.GLTFLoader = ( function () {
 
 
 						box.expandByVector( vector );
 						box.expandByVector( vector );
 
 
+					} else {
+
+						console.warn( 'THREE.GLTFLoader: Missing min/max properties for accessor POSITION.' );
+
 					}
 					}
 
 
 				}
 				}

+ 6 - 0
examples/jsm/loaders/GLTFLoader.js

@@ -2372,6 +2372,8 @@ var GLTFLoader = ( function () {
 
 
 			} else {
 			} else {
 
 
+				console.warn( 'THREE.GLTFLoader: Missing min/max properties for accessor POSITION.' );
+
 				return;
 				return;
 
 
 			}
 			}
@@ -2409,6 +2411,10 @@ var GLTFLoader = ( function () {
 
 
 						box.expandByVector( vector );
 						box.expandByVector( vector );
 
 
+					} else {
+
+						console.warn( 'THREE.GLTFLoader: Missing min/max properties for accessor POSITION.' );
+
 					}
 					}
 
 
 				}
 				}