瀏覽代碼

Merge pull request #15994 from garyo/fix/gltf-export-lights-warn

GLTFExporter: improve error message when exporting unsupported light
Mr.doob 6 年之前
父節點
當前提交
f766a58b78
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/exporters/GLTFExporter.js

+ 1 - 1
examples/js/exporters/GLTFExporter.js

@@ -1765,7 +1765,7 @@ THREE.GLTFExporter.prototype = {
 
 			} else if ( object.isLight ) {
 
-				console.warn( 'THREE.GLTFExporter: Only directional, point, and spot lights are supported.' );
+				console.warn( 'THREE.GLTFExporter: Only directional, point, and spot lights are supported.', object );
 				return null;
 
 			}