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:
authorChris Want <cwant@ualberta.ca>2008-06-18 23:58:05 +0400
committerChris Want <cwant@ualberta.ca>2008-06-18 23:58:05 +0400
commit4ed60f45759a930412f7d480a635f688e32627c3 (patch)
treee0d0e24d27046ebb2c0b1dc8a94787fb95a98938 /release
parent1c1f81914c37d3021fe7555277523bf23385add0 (diff)
== VRML97 export ==
Don't export vertex colors if a mesh doesn't have any (even if a texface has 'shared cols' set).
Diffstat (limited to 'release')
-rw-r--r--release/scripts/vrml97_export.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/release/scripts/vrml97_export.py b/release/scripts/vrml97_export.py
index f66f2bc6136..80810dddf75 100644
--- a/release/scripts/vrml97_export.py
+++ b/release/scripts/vrml97_export.py
@@ -454,6 +454,8 @@ class VRML2Export:
if mat:
if (mat.mode & Blender.Material.Modes['VCOL_PAINT']):
self.vcolors = 1
+ else:
+ self.vcolors = 0
# check if object is wireframe only
if ob.drawType == Blender.Object.DrawTypes.WIRE: