forked from bartvdbraak/blender
note:
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:
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
|
||||
|
Loading…
Reference in New Issue
Block a user