forked from bartvdbraak/blender
UI for sound (un)packing.
This commit is contained in:
parent
17fc83e537
commit
beee5161a9
@ -476,6 +476,13 @@ class SEQUENCER_PT_sound(SequencerButtonsPanel):
|
||||
|
||||
layout.template_ID(strip, "sound", new="sound.open")
|
||||
|
||||
layout.itemS()
|
||||
|
||||
if strip.sound.packed_file:
|
||||
layout.itemO("sound.unpack")
|
||||
else:
|
||||
layout.itemO("sound.pack")
|
||||
|
||||
layout.itemR(strip.sound, "filename")
|
||||
layout.itemR(strip.sound, "caching")
|
||||
|
||||
|
@ -118,7 +118,7 @@ static int sound_poll(bContext *C)
|
||||
{
|
||||
Editing* ed = CTX_data_scene(C)->ed;
|
||||
|
||||
if(!ed || !ed->act_seq || ed->act_seq->type != SEQ_SOUND || !ed->act_seq->sound)
|
||||
if(!ed || !ed->act_seq || ed->act_seq->type != SEQ_SOUND)
|
||||
return 0;
|
||||
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user