Skip to content
Snippets Groups Projects
Commit e659d2f2 authored by Campbell Barton's avatar Campbell Barton
Browse files

fix [#32599] VRML/X3D importer does not handle per vertex color

apply part of the patch included with the report - by Alan Hudson.
parent 97ab094e
No related branches found
No related tags found
No related merge requests found
......@@ -2047,6 +2047,7 @@ def importShape(node, ancestry, global_matrix):
texmtx = None
depth = 0 # so we can set alpha face flag later
is_vcol = (geom.getChildBySpec('Color') is not None)
if appr:
......@@ -2087,6 +2088,8 @@ def importShape(node, ancestry, global_matrix):
bpymat.alpha = 1.0 - mat.getFieldAsFloat('transparency', 0.0, ancestry)
if bpymat.alpha < 0.999:
bpymat.use_transparency = True
if is_vcol:
bpymat.use_vertex_color_paint = True
if ima:
ima_url = ima.getFieldAsString('url', None, ancestry)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment