[Bf-blender-cvs] [02b4df98276] temp_bmesh_multires: Enable color filter brush for pbvh bmesh

Joseph Eagar noreply at git.blender.org
Tue Apr 27 18:12:50 CEST 2021


Commit: 02b4df98276f6086a1307a64d6a3d6ac586fc7b7
Author: Joseph Eagar
Date:   Tue Apr 27 09:12:35 2021 -0700
Branches: temp_bmesh_multires
https://developer.blender.org/rB02b4df98276f6086a1307a64d6a3d6ac586fc7b7

Enable color filter brush for pbvh bmesh

===================================================================

M	source/blender/editors/sculpt_paint/sculpt_filter_color.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_color.c b/source/blender/editors/sculpt_paint/sculpt_filter_color.c
index c5258264eff..472ade36f7f 100644
--- a/source/blender/editors/sculpt_paint/sculpt_filter_color.c
+++ b/source/blender/editors/sculpt_paint/sculpt_filter_color.c
@@ -281,7 +281,7 @@ static int sculpt_color_filter_invoke(bContext *C, wmOperator *op, const wmEvent
   if (!ss->pbvh) {
     return OPERATOR_CANCELLED;
   }
-  if (BKE_pbvh_type(pbvh) != PBVH_FACES) {
+  if (BKE_pbvh_type(pbvh) == PBVH_GRIDS) {
     return OPERATOR_CANCELLED;
   }



More information about the Bf-blender-cvs mailing list