diff options
author | Hans Goudey <h.goudey@me.com> | 2020-07-21 18:13:18 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-07-21 18:13:18 +0300 |
commit | 17ebbdf1c17dab4872d2b3deea77a35524fe14b9 (patch) | |
tree | f703a92b048f254e808c20ef78e9de09f1373c21 /source/blender/editors/sound/sound_ops.c | |
parent | c2b0c64843084b6e4189d289fd2d201257fd9448 (diff) |
UI: Use consistent layout for custom operator UI
Operators are one of the last places in Blender to use older UI designs
that don't fit in with recent style conventions. This commit updates
these custom operator UI callbacks for consistency and clarity.
Some of the code is also simplified a lot. Some of the older operator layouts
were much more complex (in terms of code) than they needed to be.
See the differential revision for a before and after screenshot
of each operator.
Differential Revision: https://developer.blender.org/D8326
Diffstat (limited to 'source/blender/editors/sound/sound_ops.c')
-rw-r--r-- | source/blender/editors/sound/sound_ops.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/sound/sound_ops.c b/source/blender/editors/sound/sound_ops.c index 2e52f3aa8a8..050dca07c34 100644 --- a/source/blender/editors/sound/sound_ops.c +++ b/source/blender/editors/sound/sound_ops.c @@ -564,6 +564,9 @@ static void sound_mixdown_draw(bContext *C, wmOperator *op) PropertyRNA *prop_codec; PropertyRNA *prop_bitrate; + uiLayoutSetPropSep(layout, true); + uiLayoutSetPropDecorate(layout, false); + AUD_Container container = RNA_enum_get(op->ptr, "container"); AUD_Codec codec = RNA_enum_get(op->ptr, "codec"); |