Procházet zdrojové kódy

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

Ben Houston před 10 roky
rodič
revize
9ac106f284

+ 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.COLOR] = api.light.color(self.data)
         self[constants.INTENSITY] = api.light.intensity(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:
         if self[constants.TYPE] == constants.SPOT_LIGHT:
             self[constants.ANGLE] = api.light.angle(self.data)
             self[constants.ANGLE] = api.light.angle(self.data)