for a single tuple the last comma is needed. ('SOUND', ), otherwise its just a string.
 
 string in "STRING"
...is the same as
 string in ("STRING")
...which checks the substring, its normally used like this
 if string in "maybe one of these words contains STRING"

in this case its better just to do ==
This commit is contained in:
Campbell Barton 2009-11-22 21:47:55 +00:00
parent db164d8849
commit 9c602bd455

@ -501,7 +501,7 @@ class SEQUENCER_PT_sound(SequencerButtonsPanel):
if not strip:
return False
return strip.type in ('SOUND')
return (strip.type == 'SOUND')
def draw(self, context):
layout = self.layout
@ -535,7 +535,7 @@ class SEQUENCER_PT_scene(SequencerButtonsPanel):
if not strip:
return False
return strip.type in ('SCENE')
return (strip.type == 'SCENE')
def draw(self, context):
layout = self.layout