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
This commit is contained in:
Pablo Dobarro 2020-04-02 19:00:46 +02:00
parent 21c658b718
commit bb9a282c7e
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}