Blender Git Commit Log

Git Commits -> Revision ef5f307

Revision ef5f307 by Pablo Dobarro (master)
October 15, 2020, 17:39 (GMT)
Sculpt: Use mpoly flags to sync Face Sets visibility

Previously, all Face Set visibility logic was using mvert flags directly
to store the visibility state on the vertices while sculpting. As Face
Sets are a poly attribute, it is much simpler to use mpoly flags and let
BKE_mesh_flush_hidden_from_polys handle the vertex visibility, even for
Multires.

Now all operators that update the Face Set visibility state will always
copy the visibility to the mesh (using poly flags) and the grids, all
using the same code.

This should fix a lot of visibility glitches and bugs like the following:
- Sculpt visibility reset when changing multires levels.
- Multires visibility not updating in edit mode.
- Single face visibible when surrounded by visibile face set, even when
the face set was hidden.

Reviewed By: sergey

Differential Revision: https://developer.blender.org/D9175

Commit Details:

Full Hash: ef5f3070315ea130479c1c646ef889c98825b475
Parent Commit: 750e4e1
Lines Changed: +40, -67

6 Modified Paths:

/source/blender/blenkernel/BKE_paint.h (+5, -0) (Diff)
/source/blender/blenkernel/intern/paint.c (+20, -42) (Diff)
/source/blender/editors/sculpt_paint/sculpt.c (+10, -10) (Diff)
/source/blender/editors/sculpt_paint/sculpt_face_set.c (+3, -13) (Diff)
/source/blender/editors/sculpt_paint/sculpt_intern.h (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/sculpt_undo.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021