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:
authorPablo Dobarro <pablodp606@gmail.com>2020-04-07 14:12:12 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-04-14 21:53:42 +0300
commitf12589d335d49f537b47403e7c7a4136b6a1f472 (patch)
tree3ebf3ec359f47927d263435901a0247fa6e50be1 /source/blender/editors/sculpt_paint/sculpt_automasking.c
parentbb9a282c7ed63db7c8a15222b0a6cea7352f670b (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.c2
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;