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:
authorCampbell Barton <ideasman42@gmail.com>2010-04-17 23:05:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-04-17 23:05:53 +0400
commit4cf697de8913e91e9091a12afbd37f5ebd4c9940 (patch)
tree3ab3ea56d24c12abfcb9dd027b8a917f2bff639b /release/scripts/ui/properties_data_mesh.py
parent392e1da1790d252f0f156379c1d5507959a4e17a (diff)
- for BGE mouse and keyboard events use tuples rather then lists
- pep8 corrections
Diffstat (limited to 'release/scripts/ui/properties_data_mesh.py')
-rw-r--r--release/scripts/ui/properties_data_mesh.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/release/scripts/ui/properties_data_mesh.py b/release/scripts/ui/properties_data_mesh.py
index 0c14a040f2a..86aec2655b9 100644
--- a/release/scripts/ui/properties_data_mesh.py
+++ b/release/scripts/ui/properties_data_mesh.py
@@ -281,48 +281,48 @@ class DATA_PT_uv_texture(DataButtonsPanel):
lay = me.active_uv_texture
if lay:
layout.prop(lay, "name")
-
+
+
class DATA_PT_texface(DataButtonsPanel):
bl_label = "Texture Face"
def poll(self, context):
ob = context.active_object
rd = context.scene.render
-
- return (context.mode =='EDIT_MESH') and (rd.engine == 'BLENDER_GAME') \
- and ob and ob.type in ('MESH')
+
+ return (context.mode =='EDIT_MESH') and (rd.engine == 'BLENDER_GAME') and ob and ob.type == 'MESH'
def draw(self, context):
layout = self.layout
col = layout.column()
-
- wide_ui = context.region.width > narrowui
+
+ wide_ui = context.region.width > narrowui
me = context.mesh
-
+
tf = me.faces.active_tface
-
+
if tf:
split = layout.split()
col = split.column()
-
+
col.prop(tf, "tex")
col.prop(tf, "light")
col.prop(tf, "invisible")
col.prop(tf, "collision")
-
+
col.prop(tf, "shared")
col.prop(tf, "twoside")
col.prop(tf, "object_color")
-
+
if wide_ui:
col = split.column()
-
+
col.prop(tf, "halo")
col.prop(tf, "billboard")
col.prop(tf, "shadow")
col.prop(tf, "text")
col.prop(tf, "alpha_sort")
-
+
col = layout.column()
col.prop(tf, "transp")
else: