Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2019-09-19 19:28:38 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-09-19 19:28:38 +0300
commitc06154e38ac8c754f118b74befc8380b9a00e7ae (patch)
treea5cee03514bdaff4e181aa5dcfe1f6ba912d0b01 /io_scene_x3d/export_x3d.py
parentd5af86076fd411724e631243e430125ddb840c3c (diff)
Fix T69895: X3D Import and Export returns error on meshes with vertex colors.
2.8x materials don't have any indication they should use vcols anymore, that should be handled at node-based shader level now. For now just ignore, and always export/import active vcols.
Diffstat (limited to 'io_scene_x3d/export_x3d.py')
-rw-r--r--io_scene_x3d/export_x3d.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py
index 2c606111..52b43931 100644
--- a/io_scene_x3d/export_x3d.py
+++ b/io_scene_x3d/export_x3d.py
@@ -583,7 +583,7 @@ def export(file,
# Py dict are sorted now, so we can use directly polygons_groups.items()
# and still get consistent reproducible outputs.
- is_col = (mesh.vertex_colors.active and (material is None or material.use_vertex_color_paint))
+ is_col = mesh.vertex_colors.active
mesh_loops_col = mesh.vertex_colors.active.data if is_col else None
# Check if vertex colors can be exported in per-vertex mode.