diff options
author | Thomas Dinges <blender@dingto.org> | 2011-08-27 17:38:53 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2011-08-27 17:38:53 +0400 |
commit | f4768033d876ed23567a71a2897c19c46753f788 (patch) | |
tree | d17f64037cd6035e20880585db5528cb185490b9 /rigify | |
parent | d744270e737d5ecb192897e94549fde45405c469 (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 'rigify')
-rw-r--r-- | rigify/ui.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/rigify/ui.py b/rigify/ui.py index 741d6dab..f187490b 100644 --- a/rigify/ui.py +++ b/rigify/ui.py @@ -47,8 +47,7 @@ class DATA_PT_rigify_buttons(bpy.types.Panel): id_store = C.window_manager if obj.mode in {'POSE', 'OBJECT'}: - row = layout.row() - row.operator("pose.rigify_generate", text="Generate") + layout.operator("pose.rigify_generate", text="Generate") elif obj.mode == 'EDIT': # Build types list collection_name = str(id_store.rigify_collection).replace(" ", "") @@ -75,8 +74,8 @@ class DATA_PT_rigify_buttons(bpy.types.Panel): # Rig type list row = layout.row() row.template_list(id_store, "rigify_types", id_store, 'rigify_active_type') - row = layout.row() - op = row.operator("armature.metarig_sample_add", text="Add sample") + + op = layout.operator("armature.metarig_sample_add", text="Add sample") op.metarig_type = id_store.rigify_types[id_store.rigify_active_type].name |