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>2008-12-30 11:25:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-12-30 11:25:36 +0300
commitcbc3c7e8785d21490346d4c2eed8380de6ede378 (patch)
tree6c85883713f2a1535f863c8fb4b4ed46f9bbdd8f
parentbd97dd0846d6c22375965634d236fa39bc8d84fc (diff)
script was adding UV's rather then vertex Colors (this was correct before uv & vcol layers existed)
-rw-r--r--release/scripts/vertexpaint_from_material.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/vertexpaint_from_material.py b/release/scripts/vertexpaint_from_material.py
index 2df5b7e721f..9668c521f3a 100644
--- a/release/scripts/vertexpaint_from_material.py
+++ b/release/scripts/vertexpaint_from_material.py
@@ -27,6 +27,7 @@ def matcol(mat):
int(mat.R*255),\
int(mat.G*255),\
int(mat.B*255)
+ else:
return None
def mat2vcol(PREF_SEL_FACES_ONLY, PREF_ACTOB_ONLY, PREF_MULTIPLY_COLOR):
@@ -47,7 +48,7 @@ def mat2vcol(PREF_SEL_FACES_ONLY, PREF_ACTOB_ONLY, PREF_MULTIPLY_COLOR):
me= ob.getData(mesh=1)
try:
- me.faceUV=True
+ me.vertexColors=True
except: # no faces
continue