[Bf-blender-cvs] [7760cec5dcf] master: Fix T74498: Do not iterate over hidden vertices when using the transform tool
Pablo Dobarro
noreply at git.blender.org
Sat Mar 7 16:40:57 CET 2020
Commit: 7760cec5dcf2cc99dc9d864ac0bc4573d1bf6296
Author: Pablo Dobarro
Date: Fri Mar 6 16:04:55 2020 +0100
Branches: master
https://developer.blender.org/rB7760cec5dcf2cc99dc9d864ac0bc4573d1bf6296
Fix T74498: Do not iterate over hidden vertices when using the transform tool
By using PBVH_ITER_UNIQUE hidden vertices are skipped, like in the rest of
the brushes and tools.
Reviewed By: brecht
Maniphest Tasks: T74498
Differential Revision: https://developer.blender.org/D7047
===================================================================
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 9241287ab5d..ac03be14ab6 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -10241,7 +10241,7 @@ static void sculpt_transform_task_cb(void *__restrict userdata,
PBVHVertexIter vd;
SCULPT_undo_push_node(data->ob, node, SCULPT_UNDO_COORDS);
- BKE_pbvh_vertex_iter_begin(ss->pbvh, node, vd, PBVH_ITER_ALL)
+ BKE_pbvh_vertex_iter_begin(ss->pbvh, node, vd, PBVH_ITER_UNIQUE)
{
SCULPT_orig_vert_data_update(&orig_data, &vd);
float transformed_co[3], orig_co[3], disp[3];
More information about the Bf-blender-cvs
mailing list