Skip to content

Commit

Permalink
editor: Reset selected bulk idx when starting insert camera line
Browse files Browse the repository at this point in the history
  • Loading branch information
YaLTeR committed Jul 20, 2023
1 parent baf560f commit ca22913
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/tas_studio/editor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1192,6 +1192,10 @@ impl Editor {
self.invalidate(hovered_frame_idx + 1);
self.recompute_extra_camera_frame_data_if_needed();

// Reset the selected bulk index as dragging the insert camera line adjustment
// around will split and rejoin frame bulks and generally mess with the index.
self.selected_bulk_idx = None;

self.insert_camera_line_adjustment = Some(InsertCameraLineAdjustment {
mouse_adjustment: MouseAdjustment::new(0, mouse_pos, dir),
starting_frame_idx: hovered_frame_idx,
Expand Down

0 comments on commit ca22913

Please sign in to comment.