[Bf-blender-cvs] [3b0832d] master: Fix T39279: Vertex paint fails with mirror modifier

Campbell Barton noreply at git.blender.org
Wed Mar 26 03:57:59 CET 2014


Commit: 3b0832dd869b4c27f0b976e36134332cf427430c
Author: Campbell Barton
Date:   Wed Mar 26 13:56:07 2014 +1100
https://developer.blender.org/rB3b0832dd869b4c27f0b976e36134332cf427430c

Fix T39279: Vertex paint fails with mirror modifier

===================================================================

M	source/blender/editors/sculpt_paint/paint_vertex_proj.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/paint_vertex_proj.c b/source/blender/editors/sculpt_paint/paint_vertex_proj.c
index a04e15d..ae72924 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex_proj.c
@@ -153,6 +153,10 @@ static void vpaint_proj_dm_map_cosnos_update__map_cb(void *userData, int index,
 
 			vp_handle->dists_sq[index] = dist_sq;
 		}
+		else if (vp_handle->dists_sq[index] != FLT_MAX) {
+			/* already initialized & couldn't project this 'co' */
+			return;
+		}
 	}
 	/* continue with regular functionality */




More information about the Bf-blender-cvs mailing list