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:
authorRichard Antalik <richardantalik@gmail.com>2021-10-07 01:04:26 +0300
committerRichard Antalik <richardantalik@gmail.com>2021-10-07 01:04:26 +0300
commit306e9bff46ad721c1d3203bf7d83c1bef0d957f3 (patch)
tree962ec759eed98cc822ffbf1906a3a4b056ccb1a2
parent04857cc8efb385af5d8f40b655eeca41e2b73494 (diff)
Fix VSE pan property text printing
Move text into separate label.
-rw-r--r--release/scripts/startup/bl_ui/space_sequencer.py21
1 files changed, 16 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py
index dec754b8747..03a090255f6 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -1801,15 +1801,26 @@ class SEQUENCER_PT_adjust_sound(SequencerButtonsPanel, Panel):
split.label(text="Pitch")
split.prop(strip, "pitch", text="")
+ audio_channels = context.scene.render.ffmpeg.audio_channels
+ pan_enabled = sound.use_mono and audio_channels != 'MONO'
+ pan_text = "%.2f°" % (strip.pan * 90)
+
split = col.split(factor=0.4)
split.alignment = 'RIGHT'
split.label(text="Pan")
- audio_channels = context.scene.render.ffmpeg.audio_channels
- pan_text = ""
+ split.prop(strip, "pan", text="")
+ split.enabled = pan_enabled
+
if audio_channels != 'MONO' and audio_channels != 'STEREO':
- pan_text = "%.2f°" % (strip.pan * 90)
- split.prop(strip, "pan", text=pan_text)
- split.enabled = sound.use_mono and audio_channels != 'MONO'
+ split = col.split(factor=0.4)
+ split.alignment = 'RIGHT'
+ split.label(text="Pan Angle")
+ split.enabled = pan_enabled
+ subsplit = split.row()
+ subsplit.alignment = 'CENTER'
+ subsplit.label(text=pan_text)
+ subsplit.label(text=" ") # Compensate for no decorate.
+ subsplit.enabled = pan_enabled
layout.use_property_split = False
col = layout.column()