diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-04-02 20:00:46 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-04-14 21:52:10 +0300 |
commit | bb9a282c7ed63db7c8a15222b0a6cea7352f670b (patch) | |
tree | c610c8c79a9c1107226e743e602ffe2b83dd4518 /source/blender/editors/sculpt_paint/sculpt_face_set.c | |
parent | 21c658b718b9bd0f79f435a6a8a8603c365264a5 (diff) |
Fix Randomize Face Sets Colors not working in Multires
The operator was disabled when it was added because Face Sets were not
supported in Multires.
Reviewed By: jbakker
Differential Revision: https://developer.blender.org/D7312
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_face_set.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt_face_set.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_face_set.c b/source/blender/editors/sculpt_paint/sculpt_face_set.c index 1dd1fcf721d..d51cc7093c3 100644 --- a/source/blender/editors/sculpt_paint/sculpt_face_set.c +++ b/source/blender/editors/sculpt_paint/sculpt_face_set.c @@ -922,8 +922,8 @@ static int sculpt_face_sets_randomize_colors_invoke(bContext *C, SculptSession *ss = ob->sculpt; ARegion *region = CTX_wm_region(C); - /* Dyntopo and Multires not supported for now. */ - if (BKE_pbvh_type(ss->pbvh) != PBVH_FACES) { + /* Dyntopo not supported. */ + if (BKE_pbvh_type(ss->pbvh) == PBVH_BMESH) { return OPERATOR_CANCELLED; } |