浏览代码

Merge pull request #6952 from dubejf/scene-export-parameters

Export parameters
Mr.doob 10 年之前
父节点
当前提交
357c6c75a4
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      examples/js/exporters/SceneExporter.js

+ 4 - 4
examples/js/exporters/SceneExporter.js

@@ -402,10 +402,10 @@ THREE.SceneExporter.prototype = {
 
 				'\t' + LabelString( getGeometryName( g ) ) + ': {',
 				'	"type"    : "plane",',
-				'	"width"  : '  + g.width  + ',',
-				'	"height"  : ' + g.height + ',',
-				'	"widthSegments"  : ' + g.widthSegments + ',',
-				'	"heightSegments" : ' + g.heightSegments,
+				'	"width"  : '  + g.parameters.width  + ',',
+				'	"height"  : ' + g.parameters.height + ',',
+				'	"widthSegments"  : ' + g.parameters.widthSegments + ',',
+				'	"heightSegments" : ' + g.parameters.heightSegments,
 				'}'
 
 				];