[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40041] trunk/blender/release/scripts/ startup/bl_ui/properties_data_modifier.py: Modifier UV Project UI:
Thomas Dinges
blender at dingto.org
Thu Sep 8 13:12:25 CEST 2011
Revision: 40041
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40041
Author: dingto
Date: 2011-09-08 11:12:25 +0000 (Thu, 08 Sep 2011)
Log Message:
-----------
Modifier UV Project UI:
* Code cleanup.
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_ui/properties_data_modifier.py
Modified: trunk/blender/release/scripts/startup/bl_ui/properties_data_modifier.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_data_modifier.py 2011-09-08 11:08:22 UTC (rev 40040)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_data_modifier.py 2011-09-08 11:12:25 UTC (rev 40041)
@@ -608,32 +608,31 @@
layout.label(text="Settings can be found inside the Physics context")
def UV_PROJECT(self, layout, ob, md):
- if ob.type == 'MESH':
- split = layout.split()
+ split = layout.split()
- col = split.column()
- col.label(text="Image:")
- col.prop(md, "image", text="")
+ col = split.column()
+ col.label(text="Image:")
+ col.prop(md, "image", text="")
- col = split.column()
- col.label(text="UV Layer:")
- col.prop_search(md, "uv_layer", ob.data, "uv_textures", text="")
+ col = split.column()
+ col.label(text="UV Layer:")
+ col.prop_search(md, "uv_layer", ob.data, "uv_textures", text="")
- split = layout.split()
- col = split.column()
- col.prop(md, "use_image_override")
- col.prop(md, "projector_count", text="Projectors")
- for proj in md.projectors:
- col.prop(proj, "object", text="")
+ split = layout.split()
+ col = split.column()
+ col.prop(md, "use_image_override")
+ col.prop(md, "projector_count", text="Projectors")
+ for proj in md.projectors:
+ col.prop(proj, "object", text="")
- col = split.column()
- sub = col.column(align=True)
- sub.prop(md, "aspect_x", text="Aspect X")
- sub.prop(md, "aspect_y", text="Aspect Y")
+ col = split.column()
+ sub = col.column(align=True)
+ sub.prop(md, "aspect_x", text="Aspect X")
+ sub.prop(md, "aspect_y", text="Aspect Y")
- sub = col.column(align=True)
- sub.prop(md, "scale_x", text="Scale X")
- sub.prop(md, "scale_y", text="Scale Y")
+ sub = col.column(align=True)
+ sub.prop(md, "scale_x", text="Scale X")
+ sub.prop(md, "scale_y", text="Scale Y")
def WARP(self, layout, ob, md):
use_falloff = (md.falloff_type != 'NONE')
More information about the Bf-blender-cvs
mailing list