diff options
author | lijenstina <lijenstina@gmail.com> | 2017-06-21 07:49:36 +0300 |
---|---|---|
committer | lijenstina <lijenstina@gmail.com> | 2017-06-21 07:49:36 +0300 |
commit | 81ceb18f89dcc267136045740a1bce2ebd4b0547 (patch) | |
tree | acef616208b7a704ddddf010ae0e4fada078b896 /space_view3d_math_vis/utils.py | |
parent | 0e2011dfdae7656ce9ee57d75075e7409bae3d7e (diff) |
Math Vis Console: Cleanup
Bumped version to 0.2.1
Pep8 cleanup
Imports as tuples
Removed some unused imports
Update wiki link
Diffstat (limited to 'space_view3d_math_vis/utils.py')
-rw-r--r-- | space_view3d_math_vis/utils.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/space_view3d_math_vis/utils.py b/space_view3d_math_vis/utils.py index b243428a..77118c51 100644 --- a/space_view3d_math_vis/utils.py +++ b/space_view3d_math_vis/utils.py @@ -19,7 +19,6 @@ # <pep8 compliant> import bpy -from bpy.props import BoolProperty def console_namespace(): @@ -45,14 +44,14 @@ class VarStates: @staticmethod def store_states(): - # Store the display states, called upon unregister the Addon + # Store the display states, called upon unregister the Add-on # This is useful when you press F8 to reload the Addons. # Then this function preserves the display states of the # console variables. state_props = bpy.context.window_manager.MathVisStatePropList variables = get_math_data() for key, ktype in variables.items(): - if key and not key in state_props: + if key and key not in state_props: prop = state_props.add() prop.name = key prop.ktype = ktype.__name__ @@ -107,7 +106,6 @@ def get_math_data(): def cleanup_math_data(): - from mathutils import Matrix, Vector, Quaternion, Euler locals = console_namespace() if not locals: |