[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33820] trunk/blender/release/scripts/ui/ properties_texture.py: Small UI fix
Ton Roosendaal
ton at blender.org
Mon Dec 20 19:57:59 CET 2010
Revision: 33820
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33820
Author: ton
Date: 2010-12-20 19:57:59 +0100 (Mon, 20 Dec 2010)
Log Message:
-----------
Small UI fix
Image texture "repeat" options now greay out when not active.
Thanks Mario Kishalmi for the patch :)
Modified Paths:
--------------
trunk/blender/release/scripts/ui/properties_texture.py
Modified: trunk/blender/release/scripts/ui/properties_texture.py
===================================================================
--- trunk/blender/release/scripts/ui/properties_texture.py 2010-12-20 18:54:32 UTC (rev 33819)
+++ trunk/blender/release/scripts/ui/properties_texture.py 2010-12-20 18:57:59 UTC (rev 33820)
@@ -447,8 +447,12 @@
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':
More information about the Bf-blender-cvs
mailing list