diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2016-12-01 22:23:52 +0300 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2016-12-01 22:24:01 +0300 |
commit | 3aaa6f21d001ed97b4d6a381f0c97d5086190913 (patch) | |
tree | 413bb1e23870f998726b77a6557eec3d396e54d8 /space_view3d_math_vis/draw.py | |
parent | ecf6619d82058d808a4c17629e96db6b02b29b80 (diff) |
Improved the user interface by addding a list widget to mathVis. Also got rid of the global variables
Diffstat (limited to 'space_view3d_math_vis/draw.py')
-rw-r--r-- | space_view3d_math_vis/draw.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/space_view3d_math_vis/draw.py b/space_view3d_math_vis/draw.py index 1890c3e9..fa185514 100644 --- a/space_view3d_math_vis/draw.py +++ b/space_view3d_math_vis/draw.py @@ -69,7 +69,7 @@ def draw_callback_px(): data_matrix, data_quat, data_euler, data_vector, data_vector_array = utils.console_math_data() - name_hide = context.scene.MathVisProp.name_hide + name_hide = context.window_manager.MathVisProp.name_hide if name_hide: return @@ -156,8 +156,8 @@ def draw_callback_view(): data_matrix, data_quat, data_euler, data_vector, data_vector_array = utils.console_math_data() # draw_matrix modifiers - bbox_hide = context.scene.MathVisProp.bbox_hide - bbox_scale = context.scene.MathVisProp.bbox_scale + bbox_hide = context.window_manager.MathVisProp.bbox_hide + bbox_scale = context.window_manager.MathVisProp.bbox_scale # draw_matrix vars zero = Vector((0.0, 0.0, 0.0)) |