Commit: 92a3732ff10cd605d4e14bfeb1a7b320a0e3095d
Author: Jeroen Bakker
Date:   Tue Feb 15 09:41:10 2022 +0100
Branches: master
https://developer.blender.org/rB92a3732ff10cd605d4e14bfeb1a7b320a0e3095d

Fix T95791: Unable to switch between multiviews.

Root cause is copy pasting buggy code.

===================================================================

M       source/blender/draw/engines/image/image_instance_data.hh

===================================================================

diff --git a/source/blender/draw/engines/image/image_instance_data.hh 
b/source/blender/draw/engines/image/image_instance_data.hh
index ec6290ae8de..dcc3b7d15cb 100644
--- a/source/blender/draw/engines/image/image_instance_data.hh
+++ b/source/blender/draw/engines/image/image_instance_data.hh
@@ -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;
     }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to