Browse Source

Fixed missing quotes in SceneExport object type labels.

alteredq 12 years ago
parent
commit
5cd0bfd10b
1 changed files with 7 additions and 7 deletions
  1. 7 7
      examples/js/exporters/SceneExporter.js

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

@@ -188,7 +188,7 @@ THREE.SceneExporter.prototype = {
 				var output = [
 
 				'\t\t' + LabelString( getObjectName( o ) ) + ' : {',
-				'	"type" : AmbientLight,',
+				'	"type" : "AmbientLight",',
 				'	"color"  : ' + o.color.getHex() + ( o.children.length ? ',' : '' )
 
 				];
@@ -198,7 +198,7 @@ THREE.SceneExporter.prototype = {
 				var output = [
 
 				'\t\t' + LabelString( getObjectName( o ) ) + ' : {',
-				'	"type" : DirectionalLight,',
+				'	"type" : "DirectionalLight",',
 				'	"color"  : ' + o.color.getHex() + ',',
 				'	"intensity"  : ' + o.intensity + ',',
 				'	"direction" : ' + Vector3String( o.position ) + ( o.children.length ? ',' : '' )
@@ -210,7 +210,7 @@ THREE.SceneExporter.prototype = {
 				var output = [
 
 				'\t\t' + LabelString( getObjectName( o ) ) + ' : {',
-				'	"type" : PointLight,',
+				'	"type" : "PointLight",',
 				'	"color"  : ' + o.color.getHex() + ',',
 				'	"intensity"  : ' + o.intensity + ',',
 				'	"position" : ' + Vector3String( o.position ) + ',',
@@ -223,7 +223,7 @@ THREE.SceneExporter.prototype = {
 				var output = [
 
 				'\t\t' + LabelString( getObjectName( o ) ) + ' : {',
-				'	"type" : SpotLight,',
+				'	"type" : "SpotLight",',
 				'	"color"  : ' + o.color.getHex() + ',',
 				'	"intensity"  : ' + o.intensity + ',',
 				'	"position" : ' + Vector3String( o.position ) + ',',
@@ -238,7 +238,7 @@ THREE.SceneExporter.prototype = {
 				var output = [
 
 				'\t\t' + LabelString( getObjectName( o ) ) + ' : {',
-				'	"type" : HemisphereLight,',
+				'	"type" : "HemisphereLight",',
 				'	"skyColor"  : ' + o.color.getHex() + ',',
 				'	"groundColor"  : ' + o.groundColor.getHex() + ',',
 				'	"intensity"  : ' + o.intensity + ',',
@@ -263,7 +263,7 @@ THREE.SceneExporter.prototype = {
 				var output = [
 
 				'\t\t' + LabelString( getObjectName( o ) ) + ' : {',
-				'	"type" : PerspectiveCamera,',
+				'	"type" : "PerspectiveCamera",',
 				'	"fov": ' + o.fov + ',',
 				'	"aspect": ' + o.aspect + ',',
 				'	"near": ' + o.near + ',',
@@ -277,7 +277,7 @@ THREE.SceneExporter.prototype = {
 				var output = [
 
 				'\t\t' + LabelString( getObjectName( o ) ) + ' : {',
-				'	"type" : OrthographicCamera,',
+				'	"type" : "OrthographicCamera",',
 				'	"left": ' + o.left + ',',
 				'	"right": ' + o.right + ',',
 				'	"top": ' + o.top + ',',