diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-04-07 14:12:12 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-04-14 21:53:42 +0300 |
commit | f12589d335d49f537b47403e7c7a4136b6a1f472 (patch) | |
tree | 3ebf3ec359f47927d263435901a0247fa6e50be1 /source/blender/editors/sculpt_paint/sculpt_automasking.c | |
parent | bb9a282c7ed63db7c8a15222b0a6cea7352f670b (diff) |
Fix automasking using the wrong active face set
All tools should now use the API function to get the active face set
directly from the face under the cursor.
Reviewed By: jbakker
Differential Revision: https://developer.blender.org/D7362
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_automasking.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_automasking.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_automasking.c b/source/blender/editors/sculpt_paint/sculpt_automasking.c index 68fa7ac01ae..3ccf59ba3bb 100644 --- a/source/blender/editors/sculpt_paint/sculpt_automasking.c +++ b/source/blender/editors/sculpt_paint/sculpt_automasking.c @@ -192,7 +192,7 @@ static float *sculpt_face_sets_automasking_init(Sculpt *sd, Object *ob, float *a } int tot_vert = SCULPT_vertex_count_get(ss); - int active_face_set = SCULPT_vertex_face_set_get(ss, SCULPT_active_vertex_get(ss)); + int active_face_set = SCULPT_active_face_set_get(ss); for (int i = 0; i < tot_vert; i++) { if (!SCULPT_vertex_has_face_set(ss, i, active_face_set)) { automask_factor[i] *= 0.0f; |