UI: tweak check for sequence length

Slightly less work to check if it's None
(no need to inspect the listbase).
This commit is contained in:
Campbell Barton
2019-03-13 13:12:57 +11:00
parent a4b6ef30dc
commit 88fe48b56a

View File

@@ -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)