From 93425213fa5493563061b245f83763460a5c6009 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 6 Apr 2020 22:36:40 +1000 Subject: Cleanup: pep8 --- space_view3d_math_vis/__init__.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'space_view3d_math_vis/__init__.py') diff --git a/space_view3d_math_vis/__init__.py b/space_view3d_math_vis/__init__.py index c7a145e9..b99456f8 100644 --- a/space_view3d_math_vis/__init__.py +++ b/space_view3d_math_vis/__init__.py @@ -68,7 +68,8 @@ class PanelConsoleVars(Panel): def draw(self, context): layout = self.layout - state_props = bpy.context.window_manager.MathVisStatePropList + wm = context.window_manager + state_props = wm.MathVisStatePropList if len(state_props) == 0: box = layout.box() @@ -85,10 +86,11 @@ class PanelConsoleVars(Panel): rows=10 ) col = layout.column() - col.prop(bpy.context.window_manager.MathVisProp, "name_hide") - col.prop(bpy.context.window_manager.MathVisProp, "bbox_hide") - col.prop(bpy.context.window_manager.MathVisProp, "in_front") - col.prop(bpy.context.window_manager.MathVisProp, "bbox_scale") + mvp = wm.MathVisProp + col.prop(mvp, "name_hide") + col.prop(mvp, "bbox_hide") + col.prop(mvp, "in_front") + col.prop(mvp, "bbox_scale") col.operator("mathvis.cleanup_console") @@ -249,6 +251,7 @@ class MathVis(PropertyGroup): update=call_console_hook ) + classes = ( PanelConsoleVars, DeleteVar, -- cgit v1.2.3