Cleanup: use ELEM macro
This commit is contained in:
@@ -2041,7 +2041,7 @@ static void annotation_draw_apply(wmOperator *op, tGPsdata *p, Depsgraph *depsgr
|
||||
short ok = annotation_stroke_addpoint(p, p->mval, p->pressure, p->curtime);
|
||||
|
||||
/* handle errors while adding point */
|
||||
if ((ok == GP_STROKEADD_FULL) || (ok == GP_STROKEADD_OVERFLOW)) {
|
||||
if (ELEM(ok, GP_STROKEADD_FULL, GP_STROKEADD_OVERFLOW)) {
|
||||
/* finish off old stroke */
|
||||
annotation_paint_strokeend(p);
|
||||
/* And start a new one!!! Else, projection errors! */
|
||||
|
||||
Reference in New Issue
Block a user