Fixed handling of vertexColors parameter in Blender JSON importer.

This commit is contained in:
alteredq
2011-04-21 13:58:52 +02:00
parent 614925336d
commit abbfd7a493
@@ -71,7 +71,11 @@ def create_materials(data, modelpath):
mapDiffuse = m.get("mapDiffuse", None)
mapLightmap = m.get("mapLightmap", None)
useVertexColors = m.get("vertexColors", False)
vertexColorsType = m.get("vertexColors", False)
useVertexColors = False
if vertexColorsType:
useVertexColors = True
material = bpy.data.materials.new(name)