UI for sound (un)packing.

This commit is contained in:
Joerg Mueller 2009-08-28 22:04:37 +00:00
parent 17fc83e537
commit beee5161a9
2 changed files with 8 additions and 1 deletions

@ -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;