浏览代码

GLTFExporter: Added default exporter options

Fernando Serrano 8 年之前
父节点
当前提交
52d9c9abed
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      examples/js/exporters/GLTFExporter.js

+ 7 - 0
examples/js/exporters/GLTFExporter.js

@@ -57,6 +57,13 @@ THREE.GLTFExporter.prototype = {
 	 */
 	parse: function ( input, onDone, options ) {
 
+		var DEFAULT_OPTIONS = {
+			trs: false,
+			onlyVisible: true
+		};
+
+		options = Object.assign( {}, DEFAULT_OPTIONS, options );
+
 		var outputJSON = {
 
 			asset: {