diff options
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, |