Browse Source

small bugfix: Geometry parameters weren't exported

Marius Kintel 11 years ago
parent
commit
91071670f8
1 changed files with 6 additions and 6 deletions
  1. 6 6
      examples/js/exporters/SceneExporter.js

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

@@ -371,9 +371,9 @@ THREE.SceneExporter.prototype = {
 
 
 				'\t' + LabelString( getGeometryName( g ) ) + ': {',
 				'\t' + LabelString( getGeometryName( g ) ) + ': {',
 				'	"type"    : "sphere",',
 				'	"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 ) ) + ': {',
 				'\t' + LabelString( getGeometryName( g ) ) + ': {',
 				'	"type"    : "cube",',
 				'	"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 + ',',
 				'	"widthSegments"  : ' + g.widthSegments + ',',
 				'	"heightSegments" : ' + g.heightSegments + ',',
 				'	"heightSegments" : ' + g.heightSegments + ',',
 				'	"depthSegments" : '  + g.depthSegments,
 				'	"depthSegments" : '  + g.depthSegments,