code cleanup: misc warnings/style
[blender.git] / source / blender / editors / mesh / editmesh_select.c
index 947ee240e0d3369b0b67a53d1b41c8a58d818453..2fdefacc141aacd7879f4e4963135cbb1649709a 100644 (file)
@@ -3029,7 +3029,7 @@ static int edbm_select_ungrouped_exec(bContext *C, wmOperator *op)
        BMVert *eve;
        BMIter iter;
 
-       if (!em->selectmode == SCE_SELECT_VERTEX) {
+       if ((em->selectmode & SCE_SELECT_VERTEX) == 0) {
                BKE_report(op->reports, RPT_ERROR, "Does not work out of vertex selection mode");
                return OPERATOR_CANCELLED;
        }