[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53087] trunk/blender/source/blender/ editors/sculpt_paint/paint_vertex.c: fix [#33581] Vertex Color Layer

Campbell Barton ideasman42 at gmail.com
Mon Dec 17 16:17:53 CET 2012


Revision: 53087
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53087
Author:   campbellbarton
Date:     2012-12-17 15:17:51 +0000 (Mon, 17 Dec 2012)
Log Message:
-----------
fix [#33581] Vertex Color Layer

vertex colors were added to meshes with no faces whenver exiting/entering editmode, while in vertex paint mode outside of editmode. *(making a really big list of vertex colors!)

Modified Paths:
--------------
    trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c

Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c	2012-12-17 15:02:26 UTC (rev 53086)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_vertex.c	2012-12-17 15:17:51 UTC (rev 53087)
@@ -346,7 +346,7 @@
 	if (me->edit_btmesh) return;
 
 	/* copies from shadedisplist to mcol */
-	if (!me->mloopcol) {
+	if (!me->mloopcol && me->totloop) {
 		if (!me->mcol) {
 			CustomData_add_layer(&me->fdata, CD_MCOL, CD_DEFAULT, NULL, me->totface);
 		}




More information about the Bf-blender-cvs mailing list