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:
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):