Cleanup: remove OB_MODE_EDIT from GPencil compatibility check

All callers replace this with OB_MODE_EDIT_GPENCIL.
This commit is contained in:
Campbell Barton 2021-05-07 11:13:50 +10:00
parent eb9762a159
commit ff1b35af39
1 changed files with 2 additions and 2 deletions

View File

@ -150,8 +150,8 @@ bool ED_object_mode_compat_test(const Object *ob, eObjectMode mode)
}
break;
case OB_GPENCIL:
if (mode & (OB_MODE_EDIT | OB_MODE_EDIT_GPENCIL | OB_MODE_PAINT_GPENCIL |
OB_MODE_SCULPT_GPENCIL | OB_MODE_WEIGHT_GPENCIL | OB_MODE_VERTEX_GPENCIL)) {
if (mode & (OB_MODE_EDIT_GPENCIL | OB_MODE_PAINT_GPENCIL | OB_MODE_SCULPT_GPENCIL |
OB_MODE_WEIGHT_GPENCIL | OB_MODE_VERTEX_GPENCIL)) {
return true;
}
break;