[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [44546] trunk/blender/release/scripts/ startup/bl_operators/sequencer.py: Reverting poll changes of last commit.
Joerg Mueller
nexyon at gmail.com
Wed Feb 29 13:11:07 CET 2012
Revision: 44546
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=44546
Author: nexyon
Date: 2012-02-29 12:11:06 +0000 (Wed, 29 Feb 2012)
Log Message:
-----------
Reverting poll changes of last commit.
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_operators/sequencer.py
Modified: trunk/blender/release/scripts/startup/bl_operators/sequencer.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/sequencer.py 2012-02-29 12:08:26 UTC (rev 44545)
+++ trunk/blender/release/scripts/startup/bl_operators/sequencer.py 2012-02-29 12:11:06 UTC (rev 44546)
@@ -33,20 +33,10 @@
@classmethod
def poll(cls, context):
- seq1 = None
- seq2 = None
- for s in context.scene.sequence_editor.sequences:
- if s.select and s.type == 'SOUND':
- if seq1 is None:
- seq1 = s
- elif seq2 is None:
- seq2 = s
- else:
- return False
- if seq2 is None:
- return False
+ if context.scene and context.scene.sequence_editor and context.scene.sequence_editor.active_strip:
+ return context.scene.sequence_editor.active_strip.type == 'SOUND'
else:
- return True
+ return False
def execute(self, context):
seq1 = None
More information about the Bf-blender-cvs
mailing list