[Bf-blender-cvs] [69eaa193405] master: Fix flood fill operation not taking into account hidden vertices
Pablo Dobarro
noreply at git.blender.org
Thu Mar 12 20:46:04 CET 2020
Commit: 69eaa19340580c82bb8199cc070affb3d306c286
Author: Pablo Dobarro
Date: Thu Mar 12 13:30:51 2020 +0100
Branches: master
https://developer.blender.org/rB69eaa19340580c82bb8199cc070affb3d306c286
Fix flood fill operation not taking into account hidden vertices
The idea of the visibility system is that tools should behave like
hidden vertices do not exist, so the flood fill operation should ignore
hidden vertices for all operators.
Reviewed By: jbakker
Differential Revision: https://developer.blender.org/D7125
===================================================================
M source/blender/editors/sculpt_paint/sculpt.c
===================================================================
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index c14b9565c1b..07c452d291c 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -833,7 +833,7 @@ void SCULPT_floodfill_execute(
sculpt_vertex_duplicates_and_neighbors_iter_begin(ss, from_v, ni)
{
const int to_v = ni.index;
- if (flood->visited_vertices[to_v] == 0) {
+ if (flood->visited_vertices[to_v] == 0 && SCULPT_vertex_visible_get(ss, to_v)) {
flood->visited_vertices[to_v] = 1;
if (func(ss, from_v, to_v, ni.is_duplicate, userdata)) {
More information about the Bf-blender-cvs
mailing list