[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [18169] trunk/blender/release/scripts/ vertexpaint_from_material.py: script was adding UV' s rather then vertex Colors ( this was correct before uv & vcol layers existed)

Campbell Barton ideasman42 at gmail.com
Tue Dec 30 09:25:37 CET 2008


Revision: 18169
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=18169
Author:   campbellbarton
Date:     2008-12-30 09:25:36 +0100 (Tue, 30 Dec 2008)

Log Message:
-----------
script was adding UV's rather then vertex Colors (this was correct before uv & vcol layers existed)

Modified Paths:
--------------
    trunk/blender/release/scripts/vertexpaint_from_material.py

Modified: trunk/blender/release/scripts/vertexpaint_from_material.py
===================================================================
--- trunk/blender/release/scripts/vertexpaint_from_material.py	2008-12-30 07:32:14 UTC (rev 18168)
+++ trunk/blender/release/scripts/vertexpaint_from_material.py	2008-12-30 08:25:36 UTC (rev 18169)
@@ -27,6 +27,7 @@
 		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 @@
 		me= ob.getData(mesh=1)
 		
 		try:
-			me.faceUV=True
+			me.vertexColors=True
 		except: # no faces
 			continue
 		





More information about the Bf-blender-cvs mailing list