Commit: f5caab2cf7f19c79f57ac0e3c2900943ac06af45
Author: Antony Riakiotakis
Date:   Wed Jul 9 20:13:22 2014 +0300
https://developer.blender.org/rBf5caab2cf7f19c79f57ac0e3c2900943ac06af45

Fix T40997, artifacts when unhiding part of the mesh in dyntopo.

Tagging a face as hidden should not be done only when hiding.

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

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

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

diff --git a/source/blender/editors/sculpt_paint/paint_hide.c 
b/source/blender/editors/sculpt_paint/paint_hide.c
index d1a7f00..f1c91d0 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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to