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-02 20:00:46 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-04-14 21:52:10 +0300
commitbb9a282c7ed63db7c8a15222b0a6cea7352f670b (patch)
treec610c8c79a9c1107226e743e602ffe2b83dd4518 /source/blender/editors/sculpt_paint/sculpt_face_set.c
parent21c658b718b9bd0f79f435a6a8a8603c365264a5 (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.c4
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;
}