diff options
author | Jacques Lucke <mail@jlucke.com> | 2018-10-30 18:07:34 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2018-10-30 18:07:34 +0300 |
commit | f80599f36929782af1289fdf0e88f339c8a546ab (patch) | |
tree | 8d08fa5366aa2712ec843f5e18a86ac96171b790 /space_view3d_math_vis/__init__.py | |
parent | 76a6162517e084891577c020553427bea58ba8f2 (diff) |
port "Math Vis (Console)" addon to Blender 2.8
Reviewers: brecht
Differential Revision: https://developer.blender.org/D3795
Diffstat (limited to 'space_view3d_math_vis/__init__.py')
-rw-r--r-- | space_view3d_math_vis/__init__.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/space_view3d_math_vis/__init__.py b/space_view3d_math_vis/__init__.py index 50d399f2..0dcb7b7a 100644 --- a/space_view3d_math_vis/__init__.py +++ b/space_view3d_math_vis/__init__.py @@ -22,7 +22,7 @@ bl_info = { "name": "Math Vis (Console)", "author": "Campbell Barton", "version": (0, 2, 1), - "blender": (2, 57, 0), + "blender": (2, 80, 0), "location": "Properties: Scene > Math Vis Console and Python Console: Menu", "description": "Display console defined mathutils variables in the 3D view", "wiki_url": "https://wiki.blender.org/index.php/Extensions:2.6/Py/" @@ -74,7 +74,7 @@ class PanelConsoleVars(Panel): if len(state_props) == 0: box = layout.box() col = box.column(align=True) - col.label("No vars to display") + col.label(text="No vars to display") else: layout.template_list( 'MathVisVarList', @@ -98,7 +98,7 @@ class DeleteVar(Operator): bl_description = "Remove the variable from the Console" bl_options = {'REGISTER'} - key = StringProperty(name="Key") + key: StringProperty(name="Key") def execute(self, context): locals = utils.console_namespace() @@ -114,7 +114,7 @@ class ToggleDisplay(Operator): bl_description = "Change the display state of the var" bl_options = {'REGISTER'} - key = StringProperty(name="Key") + key: StringProperty(name="Key") def execute(self, context): utils.VarStates.toggle_display_state(self.key) @@ -128,7 +128,7 @@ class ToggleLock(Operator): bl_description = "Lock the var from being deleted" bl_options = {'REGISTER'} - key = StringProperty(name="Key") + key: StringProperty(name="Key") def execute(self, context): utils.VarStates.toggle_lock_state(self.key) @@ -177,8 +177,8 @@ def call_console_hook(self, context): class MathVisStateProp(PropertyGroup): - ktype = StringProperty() - state = BoolVectorProperty(default=(False, False), size=2) + ktype: StringProperty() + state: BoolVectorProperty(default=(False, False), size=2) class MathVisVarList(UIList): @@ -219,22 +219,22 @@ class MathVisVarList(UIList): class MathVis(PropertyGroup): - index = IntProperty( + index: IntProperty( name="index" ) - bbox_hide = BoolProperty( + bbox_hide: BoolProperty( name="Hide BBoxes", default=False, description="Hide the bounding boxes rendered for Matrix like items", update=call_console_hook ) - name_hide = BoolProperty( + name_hide: BoolProperty( name="Hide Names", default=False, description="Hide the names of the rendered items", update=call_console_hook ) - bbox_scale = FloatProperty( + bbox_scale: FloatProperty( name="Scale factor", min=0, default=1, description="Resize the Bounding Box and the coordinate " |