diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-04-06 15:36:40 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-04-06 15:41:28 +0300 |
commit | 93425213fa5493563061b245f83763460a5c6009 (patch) | |
tree | 17ceb066f8efce06a195eb417fe37e3371ab715c /space_view3d_math_vis/__init__.py | |
parent | abfbf6e0ffa7c257f868f7d03b2f1522bf7cec83 (diff) |
Cleanup: pep8
Diffstat (limited to 'space_view3d_math_vis/__init__.py')
-rw-r--r-- | space_view3d_math_vis/__init__.py | 13 |
1 files changed, 8 insertions, 5 deletions
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, |