提交 42014e1c 编写于 作者: M Mr.doob

Merge pull request #5401 from kintel/sceneexporter-fix

small bugfix: Geometry parameters weren't exported
......@@ -371,9 +371,9 @@ THREE.SceneExporter.prototype = {
'\t' + LabelString( getGeometryName( g ) ) + ': {',
' "type" : "sphere",',
' "radius" : ' + g.radius + ',',
' "widthSegments" : ' + g.widthSegments + ',',
' "heightSegments" : ' + g.heightSegments,
' "radius" : ' + g.parameters.radius + ',',
' "widthSegments" : ' + g.parameters.widthSegments + ',',
' "heightSegments" : ' + g.parameters.heightSegments,
'}'
];
......@@ -384,9 +384,9 @@ THREE.SceneExporter.prototype = {
'\t' + LabelString( getGeometryName( g ) ) + ': {',
' "type" : "cube",',
' "width" : ' + g.width + ',',
' "height" : ' + g.height + ',',
' "depth" : ' + g.depth + ',',
' "width" : ' + g.parameters.width + ',',
' "height" : ' + g.parameters.height + ',',
' "depth" : ' + g.parameters.depth + ',',
' "widthSegments" : ' + g.widthSegments + ',',
' "heightSegments" : ' + g.heightSegments + ',',
' "depthSegments" : ' + g.depthSegments,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册