소스 검색

Blender exporter: Tabs indents in export.

Mr.doob 12 년 전
부모
커밋
24e9fe9631
1개의 변경된 파일46개의 추가작업 그리고 46개의 파일을 삭제
  1. 46 46
      utils/exporters/blender/2.66/scripts/addons/io_mesh_threejs/export_threejs.py

+ 46 - 46
utils/exporters/blender/2.66/scripts/addons/io_mesh_threejs/export_threejs.py

@@ -197,60 +197,60 @@ TEMPLATE_CAMERA_ORTHO = """\
 	}"""
 
 TEMPLATE_LIGHT_POINT = """\
-        %(light_id)s : {
-                "type"       : "PointLight",
-                "position"   : %(position)s,
-                "rotation"   : %(rotation)s,
-                "color"      : %(color)d,
-                "distance"   : %(distance).3f,
-                "intensity"     : %(intensity).3f
-        }"""
+	%(light_id)s : {
+		"type"       : "PointLight",
+		"position"   : %(position)s,
+		"rotation"   : %(rotation)s,
+		"color"      : %(color)d,
+		"distance"   : %(distance).3f,
+		"intensity"  : %(intensity).3f
+	}"""
 
 TEMPLATE_LIGHT_SUN = """\
-        %(light_id)s : {
-                "type"       : "AmbientLight",
-                "position"   : %(position)s,
-                "rotation"   : %(rotation)s,
-                "color"      : %(color)d,
-                "distance"   : %(distance).3f,
-                "intensity"     : %(intensity).3f
-        }"""
+	%(light_id)s : {
+		"type"       : "AmbientLight",
+		"position"   : %(position)s,
+		"rotation"   : %(rotation)s,
+		"color"      : %(color)d,
+		"distance"   : %(distance).3f,
+		"intensity"  : %(intensity).3f
+	}"""
 
 TEMPLATE_LIGHT_SPOT = """\
-        %(light_id)s : {
-                "type"       : "SpotLight",
-                "position"   : %(position)s,
-                "rotation"   : %(rotation)s,
-                "color"      : %(color)d,
-                "distance"   : %(distance).3f,
-                "intensity"     : %(intensity).3f,
-                "use_shadow" : %(use_shadow)d,
-                "angle"      : %(angle).3f
-        }"""
+	%(light_id)s : {
+		"type"       : "SpotLight",
+		"position"   : %(position)s,
+		"rotation"   : %(rotation)s,
+		"color"      : %(color)d,
+		"distance"   : %(distance).3f,
+		"intensity"  : %(intensity).3f,
+		"use_shadow" : %(use_shadow)d,
+		"angle"      : %(angle).3f
+	}"""
 
 TEMPLATE_LIGHT_HEMI = """\
-        %(light_id)s : {
-                "type"       : "HemisphereLight",
-                "position"  : %(position)s,
-                "rotation"   : %(rotation)s,
-                "color"      : %(color)d,
-                "distance"   : %(distance).3f,
-                "intensity"     : %(intensity).3f
-        }"""
+	%(light_id)s : {
+		"type"       : "HemisphereLight",
+		"position"   : %(position)s,
+		"rotation"   : %(rotation)s,
+		"color"      : %(color)d,
+		"distance"   : %(distance).3f,
+		"intensity"  : %(intensity).3f
+	}"""
 
 TEMPLATE_LIGHT_AREA = """\
-        %(light_id)s : {
-                "type"       : "AreaLight",
-                "position"   : %(position)s,
-                "rotation"   : %(rotation)s,
-                "color"      : %(color)d,
-                "distance"   : %(distance).3f,
-                "intensity"     : %(intensity).3f,
-                "gamma"      : %(gamma).3f,
-                "shape"      : "%(shape)s",
-                "size"       : %(size).3f,
-                "size_y"     : %(size_y).3f
-        }"""
+	%(light_id)s : {
+		"type"       : "AreaLight",
+		"position"   : %(position)s,
+		"rotation"   : %(rotation)s,
+		"color"      : %(color)d,
+		"distance"   : %(distance).3f,
+		"intensity"  : %(intensity).3f,
+		"gamma"      : %(gamma).3f,
+		"shape"      : "%(shape)s",
+		"size"       : %(size).3f,
+		"size_y"     : %(size_y).3f
+	}"""
 
 
 TEMPLATE_VEC4 = '[ %g, %g, %g, %g ]'