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
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2010-12-20 21:57:59 +0300
committerTon Roosendaal <ton@blender.org>2010-12-20 21:57:59 +0300
commit7e624b81a480293d435124d497f60f7ac2ec16a1 (patch)
treeb3217cbf28cbd47e416393f8a6e32f27987b64b9
parentd0193b938d07b0c70f4bbbae0f9fd2d195141da3 (diff)
Small UI fix
Image texture "repeat" options now greay out when not active. Thanks Mario Kishalmi for the patch :)
-rw-r--r--release/scripts/ui/properties_texture.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/release/scripts/ui/properties_texture.py b/release/scripts/ui/properties_texture.py
index c6fa942eb2d..c72a2f5ca94 100644
--- a/release/scripts/ui/properties_texture.py
+++ b/release/scripts/ui/properties_texture.py
@@ -447,8 +447,12 @@ class TEXTURE_PT_image_mapping(TextureTypePanel, bpy.types.Panel):
col = split.column(align=True)
col.label(text="Mirror:")
- col.prop(tex, "use_mirror_x", text="X")
- col.prop(tex, "use_mirror_y", text="Y")
+ row = col.row()
+ row.prop(tex, "use_mirror_x", text="X")
+ row.active = (tex.repeat_x > 1)
+ row = col.row()
+ row.prop(tex, "use_mirror_y", text="Y")
+ row.active = (tex.repeat_y > 1)
layout.separator()
elif tex.extension == 'CHECKER':