Cleanup: use ELEM macro
This commit is contained in:
@@ -519,7 +519,7 @@ enum {
|
||||
|
||||
static int image_view_zoom_invoke(bContext *C, wmOperator *op, const wmEvent *event)
|
||||
{
|
||||
if (event->type == MOUSEZOOM || event->type == MOUSEPAN) {
|
||||
if (ELEM(event->type, MOUSEZOOM, MOUSEPAN)) {
|
||||
SpaceImage *sima = CTX_wm_space_image(C);
|
||||
ARegion *region = CTX_wm_region(C);
|
||||
float delta, factor, location[2];
|
||||
|
||||
Reference in New Issue
Block a user