diff options
author | Sergey Sharybin <sergey@blender.org> | 2022-06-30 11:22:50 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2022-06-30 11:24:33 +0300 |
commit | edbf04ff37be172d6ac303ebb221fe747bbf8979 (patch) | |
tree | 277a35819fafc1234e976055ce2ce07481ee518a /source/blender/editors/space_clip/clip_draw.c | |
parent | 5c726dd4ef09a8ffbd4f609d45106065c5bd04f3 (diff) |
Fix T99290: Wrong color management of plane track image preview
Always consider images as "View as Render" for the plane track image drawing.
Diffstat (limited to 'source/blender/editors/space_clip/clip_draw.c')
-rw-r--r-- | source/blender/editors/space_clip/clip_draw.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/source/blender/editors/space_clip/clip_draw.c b/source/blender/editors/space_clip/clip_draw.c index 7800ce797aa..171fb580fb7 100644 --- a/source/blender/editors/space_clip/clip_draw.c +++ b/source/blender/editors/space_clip/clip_draw.c @@ -1175,17 +1175,9 @@ static void draw_plane_marker_image(Scene *scene, ibuf = BKE_image_acquire_ibuf(image, NULL, &lock); if (ibuf) { - uchar *display_buffer; void *cache_handle; - - if (image->flag & IMA_VIEW_AS_RENDER) { - display_buffer = IMB_display_buffer_acquire( - ibuf, &scene->view_settings, &scene->display_settings, &cache_handle); - } - else { - display_buffer = IMB_display_buffer_acquire( - ibuf, NULL, &scene->display_settings, &cache_handle); - } + uchar *display_buffer = IMB_display_buffer_acquire( + ibuf, &scene->view_settings, &scene->display_settings, &cache_handle); if (display_buffer) { float frame_corners[4][2] = {{0.0f, 0.0f}, {1.0f, 0.0f}, {1.0f, 1.0f}, {0.0f, 1.0f}}; |