From aeabdc02a83a976b2f594cd66873c6d2b537e669 Mon Sep 17 00:00:00 2001 From: NBurn <7nburn@gmail.com> Date: Thu, 17 Jan 2019 16:48:54 -0500 Subject: Update Add-ons class properties to annotations This should take care of most of the class property conversions to use the new annotation format (colon instead of equals) for assignment. There may still be a few edge cases that were missed. --- mesh_inset/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mesh_inset/__init__.py') diff --git a/mesh_inset/__init__.py b/mesh_inset/__init__.py index 973b57c4..94c9327d 100644 --- a/mesh_inset/__init__.py +++ b/mesh_inset/__init__.py @@ -58,7 +58,7 @@ class Inset(bpy.types.Operator): bl_description = "Make an inset polygon inside selection" bl_options = {'REGISTER', 'UNDO'} - inset_amount = FloatProperty(name="Amount", + inset_amount: FloatProperty(name="Amount", description="Amount to move inset edges", default=5.0, min=0.0, @@ -66,7 +66,7 @@ class Inset(bpy.types.Operator): soft_min=0.0, soft_max=100.0, unit='LENGTH') - inset_height = FloatProperty(name="Height", + inset_height: FloatProperty(name="Height", description="Amount to raise inset faces", default=0.0, min=-10000.0, @@ -74,10 +74,10 @@ class Inset(bpy.types.Operator): soft_min=-500.0, soft_max=500.0, unit='LENGTH') - region = BoolProperty(name="Region", + region: BoolProperty(name="Region", description="Inset selection as one region?", default=True) - scale = EnumProperty(name="Scale", + scale: EnumProperty(name="Scale", description="Scale for amount", items=[ ('PERCENT', "Percent", -- cgit v1.2.3