[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22852] branches/blender2.5/blender: UI for sound (un)packing.
Joerg Mueller
nexyon at gmail.com
Sat Aug 29 00:04:37 CEST 2009
Revision: 22852
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22852
Author: nexyon
Date: 2009-08-29 00:04:37 +0200 (Sat, 29 Aug 2009)
Log Message:
-----------
UI for sound (un)packing.
Modified Paths:
--------------
branches/blender2.5/blender/release/ui/space_sequencer.py
branches/blender2.5/blender/source/blender/editors/sound/sound_ops.c
Modified: branches/blender2.5/blender/release/ui/space_sequencer.py
===================================================================
--- branches/blender2.5/blender/release/ui/space_sequencer.py 2009-08-28 21:54:41 UTC (rev 22851)
+++ branches/blender2.5/blender/release/ui/space_sequencer.py 2009-08-28 22:04:37 UTC (rev 22852)
@@ -476,6 +476,13 @@
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")
Modified: branches/blender2.5/blender/source/blender/editors/sound/sound_ops.c
===================================================================
--- branches/blender2.5/blender/source/blender/editors/sound/sound_ops.c 2009-08-28 21:54:41 UTC (rev 22851)
+++ branches/blender2.5/blender/source/blender/editors/sound/sound_ops.c 2009-08-28 22:04:37 UTC (rev 22852)
@@ -118,7 +118,7 @@
{
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;
More information about the Bf-blender-cvs
mailing list