diff options
author | Campbell Barton <campbell@blender.org> | 2022-06-05 16:05:38 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-06-05 16:05:38 +0300 |
commit | d450a791c37e4df0b37aab4feb8925fef206c4c8 (patch) | |
tree | 4f694f4332de4f5d1abaf54e5899c1ff04468215 /source/blender/editors/space_clip/clip_ops.c | |
parent | 4e3ce04855512b635982da0ecb285749348d9ebe (diff) |
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.
Diffstat (limited to 'source/blender/editors/space_clip/clip_ops.c')
-rw-r--r-- | source/blender/editors/space_clip/clip_ops.c | 6 |
1 files changed, 3 insertions, 3 deletions
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, |