Fix T44752: Clip Editor doesn't respect ColorSpace setting when playback after Prefetch

This commit is contained in:
Sergey Sharybin 2015-05-18 16:40:12 +05:00
parent 45afc02f11
commit cecd1f98a4
Notes: blender-bot 2023-02-14 19:45:25 +01:00
Referenced by issue #44752, Clip Editor doesn't respect ColorSpace setting when playback after Prefetch
1 changed files with 3 additions and 1 deletions

View File

@ -767,13 +767,15 @@ static void prefetch_task_func(TaskPool *pool, void *task_data, int UNUSED(threa
int flag = IB_rect | IB_alphamode_detect;
int result;
char *colorspace_name = NULL;
const bool use_proxy = (clip->flag & MCLIP_USE_PROXY) &&
(queue->render_size != MCLIP_PROXY_RENDER_SIZE_FULL);
user.framenr = current_frame;
user.render_size = queue->render_size;
user.render_flag = queue->render_flag;
/* Proxies are stored in the display space. */
if (queue->render_flag & MCLIP_USE_PROXY) {
if (!use_proxy) {
colorspace_name = clip->colorspace_settings.name;
}