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. --- io_scene_vrml2/__init__.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'io_scene_vrml2') diff --git a/io_scene_vrml2/__init__.py b/io_scene_vrml2/__init__.py index 4a420f70..e6d80db9 100644 --- a/io_scene_vrml2/__init__.py +++ b/io_scene_vrml2/__init__.py @@ -60,37 +60,37 @@ class ExportVRML(bpy.types.Operator, ExportHelper): bl_label = "Export VRML2" filename_ext = ".wrl" - filter_glob = StringProperty(default="*.wrl", options={'HIDDEN'}) + filter_glob: StringProperty(default="*.wrl", options={'HIDDEN'}) - use_selection = BoolProperty( + use_selection: BoolProperty( name="Selection Only", description="Export selected objects only", default=False, ) - use_mesh_modifiers = BoolProperty( + use_mesh_modifiers: BoolProperty( name="Apply Modifiers", description="Apply Modifiers to the exported mesh", default=True, ) - use_color = BoolProperty( + use_color: BoolProperty( name="Vertex Colors", description="Export the active vertex color layer", default=True, ) - color_type = EnumProperty( + color_type: EnumProperty( name='Color', items=( ('VERTEX', "Vertex Color", ""), ('MATERIAL', "Material Color", "")), ) - use_uv = BoolProperty( + use_uv: BoolProperty( name="Texture/UVs", description="Export the active texture and UV coords", default=True, ) - global_scale = FloatProperty( + global_scale: FloatProperty( name="Scale", min=0.01, max=1000.0, default=1.0, -- cgit v1.2.3