浏览代码

Merge pull request #18179 from Mugen87/dev29

GLTFLoader: Improve logging in computeBounds().
Michael Herzog 5 年之前
父节点
当前提交
5d89895feb
共有 2 个文件被更改,包括 12 次插入0 次删除
  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 {
 
+				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.' );
+
 					}
 
 				}

+ 6 - 0
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.' );
+
 					}
 
 				}