[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24786] trunk/blender/release/scripts/ui/ space_sequencer.py: note:
Campbell Barton
ideasman42 at gmail.com
Sun Nov 22 22:47:56 CET 2009
Revision: 24786
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24786
Author: campbellbarton
Date: 2009-11-22 22:47:55 +0100 (Sun, 22 Nov 2009)
Log Message:
-----------
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 ==
Modified Paths:
--------------
trunk/blender/release/scripts/ui/space_sequencer.py
Modified: trunk/blender/release/scripts/ui/space_sequencer.py
===================================================================
--- trunk/blender/release/scripts/ui/space_sequencer.py 2009-11-22 21:23:34 UTC (rev 24785)
+++ trunk/blender/release/scripts/ui/space_sequencer.py 2009-11-22 21:47:55 UTC (rev 24786)
@@ -501,7 +501,7 @@
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 @@
if not strip:
return False
- return strip.type in ('SCENE')
+ return (strip.type == 'SCENE')
def draw(self, context):
layout = self.layout
More information about the Bf-blender-cvs
mailing list