Fix T78229: Playhead not refreshing when area is maximized

No other areas were tagged for redraw.
This commit is contained in:
Jeroen Bakker 2020-06-29 08:13:48 +02:00
parent 41bfdeaa53
commit 3b630bd563
Notes: blender-bot 2023-02-14 06:32:27 +01:00
Referenced by issue #78229, Animation editors playhead not refreshing (maximized editor)
1 changed files with 3 additions and 2 deletions

View File

@ -4398,9 +4398,10 @@ static void screen_animation_region_tag_redraw(ScrArea *area,
}
}
/* No need to do a full redraw as the playhead is only updated. We do need to redraw when this
* area is in full screen as no other areas will be tagged for redrawing. */
if ((region->regiontype == RGN_TYPE_WINDOW) &&
(ELEM(area->spacetype, SPACE_GRAPH, SPACE_NLA, SPACE_ACTION, SPACE_SEQ))) {
/* No need to do a full redraw as the playhead is only updated. */
(ELEM(area->spacetype, SPACE_GRAPH, SPACE_NLA, SPACE_ACTION, SPACE_SEQ)) && !area->full) {
return;
}
ED_region_tag_redraw(region);