[Bf-blender-cvs] [88fe48b56a2] master: UI: tweak check for sequence length

Campbell Barton noreply at git.blender.org
Wed Mar 13 03:33:51 CET 2019


Commit: 88fe48b56a2e36907fa4100fbbd77324cc0218c7
Author: Campbell Barton
Date:   Wed Mar 13 13:12:57 2019 +1100
Branches: master
https://developer.blender.org/rB88fe48b56a2e36907fa4100fbbd77324cc0218c7

UI: tweak check for sequence length

Slightly less work to check if it's None
(no need to inspect the listbase).

===================================================================

M	release/scripts/startup/bl_ui/space_sequencer.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py
index 678050aa58a..dd0a6e5dc24 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -37,7 +37,7 @@ def act_strip(context):
 
 def selected_sequences_len(context):
     selected_sequences = getattr(context, "selected_sequences", None)
-    if not selected_sequences:
+    if selected_sequences is None:
         return 0
     return len(selected_sequences)



More information about the Bf-blender-cvs mailing list