Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Mueller <nexyon@gmail.com>2012-02-29 16:11:06 +0400
committerJoerg Mueller <nexyon@gmail.com>2012-02-29 16:11:06 +0400
commit09c96205441f814379810c2b61d59225b7afe2e3 (patch)
tree6c2139c0d1b3fa3dd0c05e3bd3b91be66675336d /release
parentd8bdd4497eec824a522062c4a8b597ef25395d63 (diff)
Reverting poll changes of last commit.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/sequencer.py16
1 files changed, 3 insertions, 13 deletions
diff --git a/release/scripts/startup/bl_operators/sequencer.py b/release/scripts/startup/bl_operators/sequencer.py
index 9d055f1bef2..c51ec74ddd6 100644
--- a/release/scripts/startup/bl_operators/sequencer.py
+++ b/release/scripts/startup/bl_operators/sequencer.py
@@ -33,20 +33,10 @@ class SequencerCrossfadeSounds(Operator):
@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