diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-26 06:56:07 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-26 06:57:27 +0400 |
commit | 3b0832dd869b4c27f0b976e36134332cf427430c (patch) | |
tree | efc99c7429e73c1d2045571b7ec9a792805d4c66 | |
parent | b4d259f04476812dba04e7854e5989fe4e06796c (diff) |
Fix T39279: Vertex paint fails with mirror modifier
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex_proj.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex_proj.c b/source/blender/editors/sculpt_paint/paint_vertex_proj.c index a04e15d3729..ae729248f7e 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 */ |