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/io/io_collada.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/io/io_collada.c')
-rw-r--r-- | source/blender/editors/io/io_collada.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/io/io_collada.c b/source/blender/editors/io/io_collada.c index dc62212bf53..c491e7a5815 100644 --- a/source/blender/editors/io/io_collada.c +++ b/source/blender/editors/io/io_collada.c @@ -468,7 +468,7 @@ void WM_OT_collada_export(wmOperatorType *ot) ot->poll = WM_operator_winactive; ot->check = wm_collada_export_check; - ot->flag |= OPTYPE_PRESET; + ot->flag = OPTYPE_PRESET; ot->ui = wm_collada_export_draw; @@ -786,7 +786,7 @@ void WM_OT_collada_import(wmOperatorType *ot) ot->exec = wm_collada_import_exec; ot->poll = WM_operator_winactive; - // ot->flag |= OPTYPE_PRESET; + // ot->flag = OPTYPE_PRESET; ot->ui = wm_collada_import_draw; |