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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-01-04 18:25:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-01-04 18:25:12 +0300
commit231f3a4e2e5a8ccee3fbe83cfbb9a346b0f4b3fa (patch)
tree08eb71c3f52dbe2dbb6ddc0729be8a0c44e4db93
parenta952de66b0f51f278a3a0c939e4a4e81b9d9bf66 (diff)
fix [#25388] Export to X3D generates texture fields in X3D file for objects
use vertex color paint setting to export vertex colors when a material is assigned.
-rw-r--r--release/scripts/op/io_scene_x3d/export_x3d.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/op/io_scene_x3d/export_x3d.py b/release/scripts/op/io_scene_x3d/export_x3d.py
index e9b83b0cccd..cc25f1b6b5f 100644
--- a/release/scripts/op/io_scene_x3d/export_x3d.py
+++ b/release/scripts/op/io_scene_x3d/export_x3d.py
@@ -466,7 +466,7 @@ class x3d_class:
#--- output textureCoordinates if UV texture used
if mesh.uv_textures.active:
self.writeTextureCoordinates(mesh)
- if mesh.vertex_colors.active:
+ if mesh.vertex_colors.active and (mat_first is None or mat_first.use_vertex_color_paint):
self.writeFaceColors(mesh)
#--- output coordinates
self.writeCoordinates(ob, mesh, meshName, EXPORT_TRI)
@@ -479,7 +479,7 @@ class x3d_class:
#--- output textureCoordinates if UV texture used
if mesh.uv_textures.active:
self.writeTextureCoordinates(mesh)
- if mesh.vertex_colors.active:
+ if mesh.vertex_colors.active and (mat_first is None or mat_first.use_vertex_color_paint):
self.writeFaceColors(mesh)
#--- output vertexColors