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 /mesh_bsurfaces.py
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 'mesh_bsurfaces.py')
-rw-r--r--mesh_bsurfaces.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/mesh_bsurfaces.py b/mesh_bsurfaces.py
index 40cf891c..6f131148 100644
--- a/mesh_bsurfaces.py
+++ b/mesh_bsurfaces.py
@@ -53,21 +53,15 @@ class VIEW3D_PT_tools_SURF_SKETCH(bpy.types.Panel):
layout = self.layout
scn = context.scene
- ob = context.object
col = layout.column(align=True)
- row = layout.row()
- row.separator()
col.operator("gpencil.surfsk_add_surface", text="Add Surface")
col.prop(scn, "SURFSK_edges_U")
col.prop(scn, "SURFSK_edges_V")
- row.separator()
- col.prop(scn, "SURFSK_keep_strokes")
- col.separator()
- row.separator()
- col.operator("gpencil.surfsk_strokes_to_curves", text="Strokes to curves")
-
+ layout.prop(scn, "SURFSK_keep_strokes")
+ layout.operator("gpencil.surfsk_strokes_to_curves", text="Strokes to curves")
+
class GPENCIL_OT_SURFSK_add_surface(bpy.types.Operator):
bl_idname = "gpencil.surfsk_add_surface"