Skip to content

Commit

Permalink
Fix T91160 - Movie Clip Editor - frame indicator/controller is not di…
Browse files Browse the repository at this point in the history
…splayed

The frame indicator/controller is not displayed when in the Graph or Dopesheet view of the Movie Clip Editor

To solve this we could call the function ED_time_scrub_draw_current_frame in clip_draw_dopesheet_main and graph_region_draw in space_clip.c

Reviewed By: jbakker

Maniphest Tasks: T91160

Differential Revision: https://developer.blender.org/D12659
  • Loading branch information
Aidan Davey authored and jeroenbakker-atmind committed Jan 4, 2022
1 parent 7af01de commit 325beef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/blender/editors/space_clip/space_clip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,9 @@ static void graph_region_draw(const bContext *C, ARegion *region)
/* time-scrubbing */
ED_time_scrub_draw(region, scene, sc->flag & SC_SHOW_SECONDS, true);

/* current frame indicator */
ED_time_scrub_draw_current_frame(region, scene, sc->flag & SC_SHOW_SECONDS);

/* scrollers */
UI_view2d_scrollers_draw(v2d, NULL);

Expand Down Expand Up @@ -1126,6 +1129,9 @@ static void dopesheet_region_draw(const bContext *C, ARegion *region)
/* time-scrubbing */
ED_time_scrub_draw(region, scene, sc->flag & SC_SHOW_SECONDS, true);

/* current frame indicator */
ED_time_scrub_draw_current_frame(region, scene, sc->flag & SC_SHOW_SECONDS);

/* scrollers */
UI_view2d_scrollers_draw(v2d, NULL);
}
Expand Down

0 comments on commit 325beef

Please sign in to comment.