[Bf-blender-cvs] [eb2c26bd380] master: Fix use of operator flag as boolean

Campbell Barton noreply at git.blender.org
Wed Nov 18 03:40:10 CET 2020


Commit: eb2c26bd38032139086978404835d90be113a3e4
Author: Campbell Barton
Date:   Wed Nov 18 13:13:52 2020 +1100
Branches: master
https://developer.blender.org/rBeb2c26bd38032139086978404835d90be113a3e4

Fix use of operator flag as boolean

Error in cb9de95d61b32f90788875f20e046095bb6310ad

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

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 c05dace380a..f67c8f701f7 100644
--- a/source/blender/editors/sculpt_paint/sculpt_face_set.c
+++ b/source/blender/editors/sculpt_paint/sculpt_face_set.c
@@ -1213,7 +1213,7 @@ static bool sculpt_face_set_edit_is_operation_valid(SculptSession *ss,
 {
   if (BKE_pbvh_type(ss->pbvh) == PBVH_BMESH) {
     /* Dyntopo is not supported. */
-    return OPERATOR_CANCELLED;
+    return false;
   }
 
   if (mode == SCULPT_FACE_SET_EDIT_DELETE_GEOMETRY) {



More information about the Bf-blender-cvs mailing list