Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2020-06-03 19:06:22 +0300
committerJulian Eisel <julian@blender.org>2020-06-03 19:12:29 +0300
commit26aa64b6885b3e752e4e2e63372e2b8e948c3d10 (patch)
tree54954a993bd3db3fc523ebae7adb0a6359ecafc0
parentef0ff4aaf2515a34fd850d576f883a6b16515345 (diff)
Fix broken split layout in encoding options
The "Max B-frames" options were misplaced. Uses the usual layout of a checkbox together with the number button now. Reported by Peter Fog (@tintwotin), thanks!
-rw-r--r--release/scripts/startup/bl_ui/properties_output.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/properties_output.py b/release/scripts/startup/bl_ui/properties_output.py
index e859798c085..5f0fd3374d2 100644
--- a/release/scripts/startup/bl_ui/properties_output.py
+++ b/release/scripts/startup/bl_ui/properties_output.py
@@ -367,11 +367,11 @@ class RENDER_PT_encoding_video(RenderOutputButtonsPanel, Panel):
# I-frames
layout.prop(ffmpeg, "gopsize")
# B-Frames
- split = layout.split(factor=0.5)
- split.prop(ffmpeg, "use_max_b_frames", text="Max B-frames")
- pbox = split.column()
- pbox.prop(ffmpeg, "max_b_frames", text="")
- pbox.enabled = ffmpeg.use_max_b_frames
+ row = layout.row(align=True, heading="Max B-frames")
+ row.prop(ffmpeg, "use_max_b_frames", text="")
+ sub = row.row(align=True)
+ sub.active = ffmpeg.use_max_b_frames
+ sub.prop(ffmpeg, "max_b_frames", text="")
if not use_crf or ffmpeg.constant_rate_factor == 'NONE':
col = layout.column()