diff options
author | Jeroen Bakker <jeroen@blender.org> | 2022-05-03 10:10:17 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-05-03 10:12:00 +0300 |
commit | 3d96fd6fd65c196c45750d17c81f6ebfce7d2a62 (patch) | |
tree | 007686a34e215fbcf95023b01df5c046a379eb07 /source/blender/draw | |
parent | 38a4d96a9061808677d3bc770f1482766fe3f3ed (diff) |
Fix T97543: Changing multipass images doesn't update the image.
Code was partial migrated from the previous image engine. Missing multilayered
images.
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/image/image_engine.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/draw/engines/image/image_engine.cc b/source/blender/draw/engines/image/image_engine.cc index e972d21cda4..a1a1de328f4 100644 --- a/source/blender/draw/engines/image/image_engine.cc +++ b/source/blender/draw/engines/image/image_engine.cc @@ -107,7 +107,12 @@ class ImageEngine { space->release_buffer(instance_data->image, image_buffer, lock); ImageUser *iuser = space->get_image_user(); - BKE_image_multiview_index(instance_data->image, iuser); + if (instance_data->image->rr != nullptr) { + BKE_image_multilayer_index(instance_data->image->rr, iuser); + } + else { + BKE_image_multiview_index(instance_data->image, iuser); + } drawing_mode.cache_image(vedata, instance_data->image, iuser); } |