UI: Display invalid cache as striped lines in the timeline #108481

Merged
Jacques Lucke merged 6 commits from lone_noel/blender:timeline-invalid-cache-stripes into blender-v4.0-release 2023-10-06 13:12:27 +02:00
1 changed files with 6 additions and 0 deletions
Showing only changes of commit d76f105117 - Show all commits

View File

@ -695,6 +695,12 @@ static void timeline_cache_draw_single(PTCacheID *pid, float y_offset, float hei
float color[4];
timeline_cache_color_get(pid, color);
/* Mix in the background color to tone it down a bit. */
float background[4];
UI_GetThemeColor4fv(TH_BACK, background);
interp_v3_v3v3(color, color, background, 0.6f);
/* Highlight the frame range of the simulation. */
immUniform4fv("color1", color);
immUniform4fv("color2", color);