[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [59242] trunk/blender/release/scripts/ startup/bl_ui/space_sequencer.py: Fix [#36423] Audio strips contain selectable (visual) blend modes and opacity value

Bastien Montagne montagne29 at wanadoo.fr
Sun Aug 18 17:48:52 CEST 2013


Revision: 59242
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=59242
Author:   mont29
Date:     2013-08-18 15:48:51 +0000 (Sun, 18 Aug 2013)
Log Message:
-----------
Fix [#36423] Audio strips contain selectable (visual) blend modes and opacity value

Simply hide blend type and opacity for SOUND strips!

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/space_sequencer.py

Modified: trunk/blender/release/scripts/startup/bl_ui/space_sequencer.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_sequencer.py	2013-08-18 15:17:33 UTC (rev 59241)
+++ trunk/blender/release/scripts/startup/bl_ui/space_sequencer.py	2013-08-18 15:48:51 UTC (rev 59242)
@@ -407,16 +407,17 @@
         split.label(text="Type:")
         split.prop(strip, "type", text="")
 
-        split = layout.split(percentage=0.3)
-        split.label(text="Blend:")
-        split.prop(strip, "blend_type", text="")
+        if strip.type not in {'SOUND'}:
+            split = layout.split(percentage=0.3)
+            split.label(text="Blend:")
+            split.prop(strip, "blend_type", text="")
 
-        row = layout.row(align=True)
-        sub = row.row()
-        sub.active = (not strip.mute)
-        sub.prop(strip, "blend_alpha", text="Opacity", slider=True)
-        row.prop(strip, "mute", toggle=True, icon='RESTRICT_VIEW_ON' if strip.mute else 'RESTRICT_VIEW_OFF', text="")
-        row.prop(strip, "lock", toggle=True, icon='LOCKED' if strip.lock else 'UNLOCKED', text="")
+            row = layout.row(align=True)
+            sub = row.row()
+            sub.active = (not strip.mute)
+            sub.prop(strip, "blend_alpha", text="Opacity", slider=True)
+            row.prop(strip, "mute", toggle=True, icon='RESTRICT_VIEW_ON' if strip.mute else 'RESTRICT_VIEW_OFF', text="")
+            row.prop(strip, "lock", toggle=True, icon='LOCKED' if strip.lock else 'UNLOCKED', text="")
 
         col = layout.column()
         sub = col.column()




More information about the Bf-blender-cvs mailing list