Fix T69684: Sound Strip "Pan" function is misleading

Gray-out pan property when sound mono property is unset.

Reviewed By: billreynish

Differential Revision: https://developer.blender.org/D5806
This commit is contained in:
Richard Antalik 2019-09-29 16:14:00 -07:00
parent ff10ff782b
commit cdcb844d27
Notes: blender-bot 2023-02-14 09:48:25 +01:00
Referenced by issue #69684, Sound Strip Audio "Pan" defaults are misleading
2 changed files with 5 additions and 2 deletions

@ -1 +1 @@
Subproject commit 23b744fa47da73c0b6c5b41b02cfe0efa008ec5c
Subproject commit d9ed9d4d064c74c86e2767cd4be32d602a0ee317

View File

@ -1571,10 +1571,13 @@ class SEQUENCER_PT_adjust_sound(SequencerButtonsPanel, Panel):
col.prop(strip, "volume", text="Volume")
col.prop(strip, "pitch")
col = layout.column()
col.prop(strip, "pan")
col.enabled = sound is not None and sound.use_mono
if sound is not None:
col = layout.column()
if st.waveform_display_type == 'DEFAULT_WAVEFORMS':
col.prop(strip, "show_waveform")
col.prop(sound, "use_mono")