Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2011-08-27 17:38:53 +0400
committerThomas Dinges <blender@dingto.org>2011-08-27 17:38:53 +0400
commitf4768033d876ed23567a71a2897c19c46753f788 (patch)
treed17f64037cd6035e20880585db5528cb185490b9 /light_field_tools
parentd744270e737d5ecb192897e94549fde45405c469 (diff)
Addon UI Cleanup, Part 2
* You only have to do layout.prop if you want 1 property, no need for row then! * Use col, row, sub as variable names, not colsub, rowsub, row2 etc please. * Povray Addon: Still used a lot of splits, you need no split when you only have 1 column!
Diffstat (limited to 'light_field_tools')
-rw-r--r--light_field_tools/light_field_tools.py23
1 files changed, 10 insertions, 13 deletions
diff --git a/light_field_tools/light_field_tools.py b/light_field_tools/light_field_tools.py
index 2251591b..89aa80fa 100644
--- a/light_field_tools/light_field_tools.py
+++ b/light_field_tools/light_field_tools.py
@@ -401,12 +401,11 @@ class VIEW3D_OT_lightfield_tools(bpy.types.Panel):
bl_label = "Light Field Tools"
def draw(self, context):
+ layout = self.layout
+
scene = context.scene
- layout = self.layout
- layout.row() # XXX, is this needed?
col = layout.column()
-
col.prop(scene.lightfield, "row_length")
col.prop(scene.lightfield, "angle")
@@ -416,18 +415,16 @@ class VIEW3D_OT_lightfield_tools(bpy.types.Panel):
col.prop(scene.lightfield, "animate_camera")
col.prop(scene.lightfield, "do_projection")
- sub = layout.row()
- sub.enabled = scene.lightfield.do_projection
- subcol = sub.column(align=True)
- subcol.prop(scene.lightfield, "texture_path")
- subcol.prop(scene.lightfield, "light_intensity")
- subcol.prop(scene.lightfield, "spot_blend")
+ col = layout.column(align=True)
+ col.enabled = scene.lightfield.do_projection
+ col.prop(scene.lightfield, "texture_path")
+ col.prop(scene.lightfield, "light_intensity")
+ col.prop(scene.lightfield, "spot_blend")
# create a basemesh
- sub = layout.row()
- subcol = sub.column(align=True)
- subcol.operator("object.create_lightfield_basemesh", "Create Base Grid")
- subcol.prop(scene.lightfield, "spacing")
+ col = layout.column(align=True)
+ col.operator("object.create_lightfield_basemesh", "Create Base Grid")
+ col.prop(scene.lightfield, "spacing")
layout.operator("object.create_lightfield_rig", "Create Rig")