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-05-28 01:53:18 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-06-01 23:18:59 +0300
commit91fb07f3611cfeadd1f0eb0cb0bb8c439bd8dc5e (patch)
tree92befef2bd0fe9f9cac8bd42bae10293d808fa5e /source/blender/editors/sculpt_paint/sculpt_filter_mesh.c
parent3cce8afe2c85dab37165d8fb0fb8e6eaf65903d1 (diff)
Fix mesh filter using the wrong face set as active
This was returning the wrong face set in cases where the active vertex has more than one available face set. Reviewed By: sergey Differential Revision: https://developer.blender.org/D7858
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_filter_mesh.c')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt_filter_mesh.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c b/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c
index 7c438e9245b..fc3e130cc98 100644
--- a/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c
+++ b/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c
@@ -565,8 +565,7 @@ static int sculpt_mesh_filter_invoke(bContext *C, wmOperator *op, const wmEvent
SCULPT_filter_cache_init(ob, sd);
if (use_face_sets) {
- ss->filter_cache->active_face_set = SCULPT_vertex_face_set_get(ss,
- SCULPT_active_vertex_get(ss));
+ ss->filter_cache->active_face_set = SCULPT_active_face_set_get(ss);
}
else {
ss->filter_cache->active_face_set = SCULPT_FACE_SET_NONE;