Fix T95791: Unable to switch between multiviews.

Root cause is copy pasting buggy code.
This commit is contained in:
Jeroen Bakker 2022-02-15 09:41:10 +01:00 committed by Campbell Barton
parent 14dd207b75
commit 92a3732ff1
Notes: blender-bot 2023-02-13 16:13:03 +01:00
Referenced by issue #95791, Changing steroscopic view does not result in image viewer update
Referenced by issue #95798, changing the selected render slot's pass results in other render slots randomly changing to something different making it impossible to A/B
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ struct IMAGE_InstanceData {
short requested_view = image_user ? image_user->multi_index : 0;
/* There is room for 2 multiview textures. When a higher number is requested we should always
* target the first view slot. This is fine as multi view images aren't used together. */
if (requested_view < 2) {
if (requested_view > 1) {
requested_view = 0;
}