Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-07-12 16:09:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-12 16:09:15 +0300
commit9dc19735c32dcec30d03516365c2cee8a4b4ddc6 (patch)
tree9ed6cd54c1f9e234618fbdc6b36e541b8bb3985d /io_curve_svg
parent8a9cc98ff1328910b70f09bba196954c87738fb2 (diff)
Python: use fields
Diffstat (limited to 'io_curve_svg')
-rw-r--r--io_curve_svg/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/io_curve_svg/__init__.py b/io_curve_svg/__init__.py
index 8ba318c9..db03b3f2 100644
--- a/io_curve_svg/__init__.py
+++ b/io_curve_svg/__init__.py
@@ -52,7 +52,7 @@ class ImportSVG(bpy.types.Operator, ImportHelper):
bl_options = {'UNDO'}
filename_ext = ".svg"
- filter_glob = StringProperty(default="*.svg", options={'HIDDEN'})
+ filter_glob: StringProperty(default="*.svg", options={'HIDDEN'})
def execute(self, context):
from . import import_svg
@@ -67,13 +67,13 @@ def menu_func_import(self, context):
def register():
- bpy.utils.register_module(__name__)
+ bpy.utils.register_class(ImportSVG)
bpy.types.INFO_MT_file_import.append(menu_func_import)
def unregister():
- bpy.utils.unregister_module(__name__)
+ bpy.utils.unregister_class(ImportSVG)
bpy.types.INFO_MT_file_import.remove(menu_func_import)