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:
authorJoerg Mueller <nexyon@gmail.com>2009-08-29 02:04:37 +0400
committerJoerg Mueller <nexyon@gmail.com>2009-08-29 02:04:37 +0400
commitbeee5161a9a48eb1610dcad6d9c136b907b2d8ee (patch)
tree11e2801ef8dbe00e1a5ff29979a8dec8006a719c
parent17fc83e537f8bfca643d555b8f5e2d14afebd93d (diff)
UI for sound (un)packing.
-rw-r--r--release/ui/space_sequencer.py7
-rw-r--r--source/blender/editors/sound/sound_ops.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/release/ui/space_sequencer.py b/release/ui/space_sequencer.py
index cf9d89edec8..87111b2925f 100644
--- a/release/ui/space_sequencer.py
+++ b/release/ui/space_sequencer.py
@@ -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")
diff --git a/source/blender/editors/sound/sound_ops.c b/source/blender/editors/sound/sound_ops.c
index d8a84611298..75204207284 100644
--- a/source/blender/editors/sound/sound_ops.c
+++ b/source/blender/editors/sound/sound_ops.c
@@ -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;