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/windowmanager | |
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/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files_link.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/windowmanager/intern/wm_files_link.c b/source/blender/windowmanager/intern/wm_files_link.c index b41ffb4cfc2..f2c41dada48 100644 --- a/source/blender/windowmanager/intern/wm_files_link.c +++ b/source/blender/windowmanager/intern/wm_files_link.c @@ -438,7 +438,7 @@ void WM_OT_link(wmOperatorType *ot) ot->exec = wm_link_append_exec; ot->poll = wm_link_append_poll; - ot->flag |= OPTYPE_UNDO; + ot->flag = OPTYPE_UNDO; WM_operator_properties_filesel(ot, FILE_TYPE_FOLDER | FILE_TYPE_BLENDER | FILE_TYPE_BLENDERLIB, @@ -462,7 +462,7 @@ void WM_OT_append(wmOperatorType *ot) ot->exec = wm_link_append_exec; ot->poll = wm_link_append_poll; - ot->flag |= OPTYPE_UNDO; + ot->flag = OPTYPE_UNDO; WM_operator_properties_filesel(ot, FILE_TYPE_FOLDER | FILE_TYPE_BLENDER | FILE_TYPE_BLENDERLIB, @@ -803,7 +803,7 @@ void WM_OT_lib_relocate(wmOperatorType *ot) ot->invoke = wm_lib_relocate_invoke; ot->exec = wm_lib_relocate_exec; - ot->flag |= OPTYPE_UNDO; + ot->flag = OPTYPE_UNDO; prop = RNA_def_string(ot->srna, "library", NULL, MAX_NAME, "Library", "Library to relocate"); RNA_def_property_flag(prop, PROP_HIDDEN); @@ -833,7 +833,7 @@ void WM_OT_lib_reload(wmOperatorType *ot) ot->exec = wm_lib_reload_exec; - ot->flag |= OPTYPE_UNDO; + ot->flag = OPTYPE_UNDO; prop = RNA_def_string(ot->srna, "library", NULL, MAX_NAME, "Library", "Library to reload"); RNA_def_property_flag(prop, PROP_HIDDEN); |