mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-09 04:56:01 +10:00
Fixed handling of vertexColors parameter in Blender JSON importer.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user