Small UI fix

Image texture "repeat" options now greay out when not active.
Thanks Mario Kishalmi for the patch :)
This commit is contained in:
Ton Roosendaal 2010-12-20 18:57:59 +00:00
parent d0193b938d
commit 7e624b81a4

@ -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':