[Bf-blender-cvs] [bb9a282c7ed] master: Fix Randomize Face Sets Colors not working in Multires
Pablo Dobarro
noreply at git.blender.org
Tue Apr 14 20:52:30 CEST 2020
Commit: bb9a282c7ed63db7c8a15222b0a6cea7352f670b
Author: Pablo Dobarro
Date: Thu Apr 2 19:00:46 2020 +0200
Branches: master
https://developer.blender.org/rBbb9a282c7ed63db7c8a15222b0a6cea7352f670b
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
===================================================================
M source/blender/editors/sculpt_paint/sculpt_face_set.c
===================================================================
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;
}
More information about the Bf-blender-cvs
mailing list