[Bf-blender-cvs] [49dbf1324dc] master: Image Editor: Deactivate show repeat for UDIM

Jeroen Bakker noreply at git.blender.org
Tue Sep 15 13:35:27 CEST 2020


Commit: 49dbf1324dccd014f4f65da26e29402ec299ba72
Author: Jeroen Bakker
Date:   Tue Sep 15 13:33:56 2020 +0200
Branches: master
https://developer.blender.org/rB49dbf1324dccd014f4f65da26e29402ec299ba72

Image Editor: Deactivate show repeat for UDIM

UDIM textures cannot be repeated, but the option didn't communicate
this. This change makes the Show Repeat option inactive when viewing
Tiled images

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

M	release/scripts/startup/bl_ui/space_image.py

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

diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py
index e9a2dbb977b..57feeb04eee 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -986,7 +986,9 @@ class IMAGE_PT_view_display(Panel):
 
         if ima:
             col.prop(ima, "display_aspect", text="Aspect Ratio")
-            col.prop(sima, "show_repeat", text="Repeat Image")
+            row = col.row()
+            row.active = ima.source != 'TILED'
+            row.prop(sima, "show_repeat", text="Repeat Image")
             col.prop(sima, "show_pure_emissive_colors")
 
         if show_uvedit:



More information about the Bf-blender-cvs mailing list