瀏覽代碼

GLTFExporter add missing argument for catch

Takahiro 7 年之前
父節點
當前提交
39a01e4adf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/exporters/GLTFExporter.js

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

@@ -337,7 +337,7 @@ THREE.GLTFExporter.prototype = {
 
 
 				return JSON.parse( JSON.stringify( userData ) );
 				return JSON.parse( JSON.stringify( userData ) );
 
 
-			} catch {
+			} catch ( error ) {
 
 
 				throw new Error( 'THREE.GLTFExporter: userData can\'t be serialized' );
 				throw new Error( 'THREE.GLTFExporter: userData can\'t be serialized' );