Skip to content

Commit

Permalink
fix: fix recalculation of first transition
Browse files Browse the repository at this point in the history
  • Loading branch information
ntamas committed Jul 11, 2023
1 parent 4c8934b commit 8f7e088
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,6 @@ def update_transition_for_storyboard_entry(
Raises:
SkybrushStudioError: if an error happens while calculating transitions
"""
if entry.is_locked:
# entry is locked, nothing to do here
Expand Down Expand Up @@ -584,7 +583,7 @@ def update_transition_for_storyboard_entry(
windup_start_frame += departure_delay
start_frame += arrival_delay

if windup_start_frame >= start_frame:
if previous_entry is not None and windup_start_frame >= start_frame:
raise SkybrushStudioError(
f"Not enough time to plan staggered transition to "
f"formation {entry.name!r} at drone index {drone_index+1} "
Expand Down

0 comments on commit 8f7e088

Please sign in to comment.