diff options
author | Jeroen Bakker <jeroen@blender.org> | 2022-02-14 12:54:21 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-02-14 12:54:21 +0300 |
commit | d23cf42ba761a0d387c693f1f9d421447adc2c03 (patch) | |
tree | 9285d141ebdfc9cc322718099e51a3dd6a9e2ce0 /source/blender/draw/engines/image/image_drawing_mode.hh | |
parent | ab71d833c775dce9efa25398ad3079729d404951 (diff) |
Fix T95725: Changing render slot doesn't update displayed image.
Fixed by checking the requested pass, layer and view against the
previous used one.
Diffstat (limited to 'source/blender/draw/engines/image/image_drawing_mode.hh')
-rw-r--r-- | source/blender/draw/engines/image/image_drawing_mode.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/engines/image/image_drawing_mode.hh b/source/blender/draw/engines/image/image_drawing_mode.hh index 0aaf0ca9f24..0c638ef15c2 100644 --- a/source/blender/draw/engines/image/image_drawing_mode.hh +++ b/source/blender/draw/engines/image/image_drawing_mode.hh @@ -474,6 +474,9 @@ template<typename TextureMethod> class ScreenSpaceDrawingMode : public AbstractD method.update_screen_space_bounds(region); method.update_screen_uv_bounds(); + // Check for changes in the image user compared to the last time. + instance_data->update_image_user(iuser); + // Step: Update the GPU textures based on the changes in the image. instance_data->update_gpu_texture_allocations(); update_textures(*instance_data, image, iuser); |