From f4768033d876ed23567a71a2897c19c46753f788 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Sat, 27 Aug 2011 13:38:53 +0000 Subject: 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! --- object_cloud_gen.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'object_cloud_gen.py') diff --git a/object_cloud_gen.py b/object_cloud_gen.py index a97f47bb..a6308683 100644 --- a/object_cloud_gen.py +++ b/object_cloud_gen.py @@ -321,26 +321,21 @@ class VIEW3D_PT_tools_cloud(bpy.types.Panel): WhatToDo = getActionToDo(active_obj) if WhatToDo == 'DEGENERATE': - col.operator("cloud.generate_cloud", text="DeGenerate") elif WhatToDo == 'CLOUD_CONVERT_TO_MESH': - col.operator("cloud.generate_cloud", text="Convert to Mesh") elif WhatToDo == 'NO_SELECTION_DO_NOTHING': - col.label(text="Select one or more") col.label(text="objects to generate") col.label(text="a cloud.") elif WhatToDo == 'CLOUD_DO_NOTHING': - col.label(text="Must select") col.label(text="bound box") elif WhatToDo == 'GENERATE': - col.operator("cloud.generate_cloud", text="Generate Cloud") col.prop(context.scene, "cloud_type") -- cgit v1.2.3