浏览代码

do not export Blender's distance parameter as it isn't a cutoff distance.

Ben Houston 10 年之前
父节点
当前提交
9ac106f284
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      utils/exporters/blender/addons/io_three/exporter/object.py

+ 4 - 2
utils/exporters/blender/addons/io_three/exporter/object.py

@@ -46,8 +46,10 @@ class Object(base_classes.BaseNode):
         self[constants.COLOR] = api.light.color(self.data)
         self[constants.INTENSITY] = api.light.intensity(self.data)
 
-        if self[constants.TYPE] != constants.DIRECTIONAL_LIGHT:
-            self[constants.DISTANCE] = api.light.distance(self.data)
+        # Commented out because Blender's distance is not a cutoff value.
+        #if self[constants.TYPE] != constants.DIRECTIONAL_LIGHT:
+        #    self[constants.DISTANCE] = api.light.distance(self.data)
+        self[constants.DISTANCE] = 0;
 
         if self[constants.TYPE] == constants.SPOT_LIGHT:
             self[constants.ANGLE] = api.light.angle(self.data)