[Bf-extensions-cvs] [f1c82b13] master: Storypencil: Fix switch error when there are no scene strips
Antonio Vazquez
noreply at git.blender.org
Fri Dec 30 16:13:32 CET 2022
Commit: f1c82b13ee6277e8685f3dc972544fe1447c5046
Author: Antonio Vazquez
Date: Fri Dec 30 16:11:35 2022 +0100
Branches: master
https://developer.blender.org/rBAf1c82b13ee6277e8685f3dc972544fe1447c5046
Storypencil: Fix switch error when there are no scene strips
If there was a non scene strip, the switch was not working.
===================================================================
M storypencil/synchro.py
===================================================================
diff --git a/storypencil/synchro.py b/storypencil/synchro.py
index 94ebe02b..6614b334 100644
--- a/storypencil/synchro.py
+++ b/storypencil/synchro.py
@@ -339,7 +339,8 @@ def get_sequences_at_frame(
:param frame: the frame to consider
"""
return [s for s in sequences if frame >= s.frame_start + s.frame_offset_start and
- frame < s.frame_start + s.frame_offset_start + s.frame_final_duration]
+ frame < s.frame_start + s.frame_offset_start + s.frame_final_duration and
+ s.type == 'SCENE']
def get_sequence_at_frame(
More information about the Bf-extensions-cvs
mailing list