Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2022-02-15 11:41:10 +0300
committerJeroen Bakker <jeroen@blender.org>2022-02-15 11:41:10 +0300
commitd1c7a252eb319e418afb6331caa8813cb0848495 (patch)
tree7e1da4e2e1ccfd0dbdc1728ba58f806d9ba2db2d /source
parentfacd9d82682b30e14e3a7db8fe6af830428d65cc (diff)
Fix T95791: Unable to switch between multiviews.
Root cause is copy pasting buggy code.
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/engines/image/image_instance_data.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/image/image_instance_data.hh b/source/blender/draw/engines/image/image_instance_data.hh
index a2367c687b5..68c61a82e96 100644
--- a/source/blender/draw/engines/image/image_instance_data.hh
+++ b/source/blender/draw/engines/image/image_instance_data.hh
@@ -117,7 +117,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;
}