[Bf-blender-cvs] [26aa64b6885] master: Fix broken split layout in encoding options

Julian Eisel noreply at git.blender.org
Wed Jun 3 18:12:37 CEST 2020


Commit: 26aa64b6885b3e752e4e2e63372e2b8e948c3d10
Author: Julian Eisel
Date:   Wed Jun 3 18:06:22 2020 +0200
Branches: master
https://developer.blender.org/rB26aa64b6885b3e752e4e2e63372e2b8e948c3d10

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!

===================================================================

M	release/scripts/startup/bl_ui/properties_output.py

===================================================================

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()



More information about the Bf-blender-cvs mailing list