Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2014-07-09 21:13:22 +0400
committerAntony Riakiotakis <kalast@gmail.com>2014-07-09 21:13:22 +0400
commitf5caab2cf7f19c79f57ac0e3c2900943ac06af45 (patch)
treebea27a889ea2ac7154147a40b689a59e3465c753 /source/blender/editors/sculpt_paint/paint_hide.c
parentb617d6d5e6604cb259740e486bf1ac6c07cf42d9 (diff)
Fix T40997, artifacts when unhiding part of the mesh in dyntopo.
Tagging a face as hidden should not be done only when hiding.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_hide.c')
-rw-r--r--source/blender/editors/sculpt_paint/paint_hide.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_hide.c b/source/blender/editors/sculpt_paint/paint_hide.c
index d1a7f0032ae..f1c91d0fcb5 100644
--- a/source/blender/editors/sculpt_paint/paint_hide.c
+++ b/source/blender/editors/sculpt_paint/paint_hide.c
@@ -252,14 +252,14 @@ static void partialvis_update_bmesh_verts(BMesh *bm,
}
}
-static void partialvis_update_bmesh_faces(GSet *faces, PartialVisAction action)
+static void partialvis_update_bmesh_faces(GSet *faces)
{
GSetIterator gs_iter;
GSET_ITER (gs_iter, faces) {
BMFace *f = BLI_gsetIterator_getKey(&gs_iter);
- if ((action == PARTIALVIS_HIDE) && paint_is_bmesh_face_hidden(f))
+ if (paint_is_bmesh_face_hidden(f))
BM_elem_flag_enable(f, BM_ELEM_HIDDEN);
else
BM_elem_flag_disable(f, BM_ELEM_HIDDEN);
@@ -301,7 +301,7 @@ static void partialvis_update_bmesh(Object *ob,
&any_visible);
/* finally loop over node faces and tag the ones that are fully hidden */
- partialvis_update_bmesh_faces(faces, action);
+ partialvis_update_bmesh_faces(faces);
if (any_changed) {
BKE_pbvh_node_mark_rebuild_draw(node);