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 /space_view3d_math_vis/__init__.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 'space_view3d_math_vis/__init__.py')
-rw-r--r--space_view3d_math_vis/__init__.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/space_view3d_math_vis/__init__.py b/space_view3d_math_vis/__init__.py
index 10ba8d4b..3e025fe9 100644
--- a/space_view3d_math_vis/__init__.py
+++ b/space_view3d_math_vis/__init__.py
@@ -49,10 +49,6 @@ class VIEW3D_PT_math_vis(bpy.types.Panel):
bl_label = "Math View"
def draw(self, context):
- layout = self.layout
-
- col = layout.column(align=True)
-
callbacks = draw.callbacks
ok = False
for region in context.area.regions:
@@ -60,7 +56,7 @@ class VIEW3D_PT_math_vis(bpy.types.Panel):
ok = True
break
- col.operator("view3d.math_vis_toggle", emboss=False, icon='CHECKBOX_HLT' if ok else 'CHECKBOX_DEHLT')
+ self.layout.operator("view3d.math_vis_toggle", emboss=False, icon='CHECKBOX_HLT' if ok else 'CHECKBOX_DEHLT')
class SetupMathView(bpy.types.Operator):