From d450a791c37e4df0b37aab4feb8925fef206c4c8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 5 Jun 2022 23:05:38 +1000 Subject: Cleanup: assign operator type flags in their initialization Some operators OR'ed the existing flags in a way that made it seem the value might already have some values set. Replace this with assignment as no flags are set and the convention with almost all operators is to write the value directly. --- source/blender/editors/space_clip/clip_ops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/space_clip/clip_ops.c') diff --git a/source/blender/editors/space_clip/clip_ops.c b/source/blender/editors/space_clip/clip_ops.c index e61c264ca06..f5bf850791a 100644 --- a/source/blender/editors/space_clip/clip_ops.c +++ b/source/blender/editors/space_clip/clip_ops.c @@ -777,7 +777,7 @@ void CLIP_OT_view_zoom_in(wmOperatorType *ot) ot->poll = ED_space_clip_view_clip_poll; /* flags */ - ot->flag |= OPTYPE_LOCK_BYPASS; + ot->flag = OPTYPE_LOCK_BYPASS; /* properties */ prop = RNA_def_float_vector(ot->srna, @@ -834,7 +834,7 @@ void CLIP_OT_view_zoom_out(wmOperatorType *ot) ot->poll = ED_space_clip_view_clip_poll; /* flags */ - ot->flag |= OPTYPE_LOCK_BYPASS; + ot->flag = OPTYPE_LOCK_BYPASS; /* properties */ prop = RNA_def_float_vector(ot->srna, @@ -883,7 +883,7 @@ void CLIP_OT_view_zoom_ratio(wmOperatorType *ot) ot->poll = ED_space_clip_view_clip_poll; /* flags */ - ot->flag |= OPTYPE_LOCK_BYPASS; + ot->flag = OPTYPE_LOCK_BYPASS; /* properties */ RNA_def_float(ot->srna, -- cgit v1.2.3