Browse Source

Blender: Fixed export of .vertexColors.

tschw 9 years ago
parent
commit
e42b5f5c4a
1 changed files with 4 additions and 1 deletions
  1. 4 1
      utils/exporters/blender/addons/io_three/exporter/material.py

+ 4 - 1
utils/exporters/blender/addons/io_three/exporter/material.py

@@ -36,7 +36,10 @@ class Material(base_classes.BaseNode):
             self[constants.EMISSIVE] = utilities.rgb2int(emissive)
 
         vertex_color = api.material.use_vertex_colors(self.node)
-        self[constants.VERTEX_COLORS] = vertex_color
+        if vertex_color:
+            self[constants.VERTEX_COLORS] = constants.VERTEX_COLORS_ON
+        else:
+            self[constants.VERTEX_COLORS] = constants.VERTEX_COLORS_OFF
 
         self[constants.BLENDING] = api.material.blending(self.node)