diff options
author | Clemens Barth <barth@root-1.de> | 2019-03-15 22:02:00 +0300 |
---|---|---|
committer | Clemens Barth <barth@root-1.de> | 2019-03-15 22:02:00 +0300 |
commit | 1a242e44949b804d9a93cecc429f30074f8b016f (patch) | |
tree | ff2dd94d3e4bdee7022fb1e5d673e92ad0c983a5 | |
parent | 4ca003e90a530db897852ea33819654c6f5fc10c (diff) |
Renaming classes as documented here: https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Python_API/Addons
-rw-r--r-- | io_mesh_pdb/__init__.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/io_mesh_pdb/__init__.py b/io_mesh_pdb/__init__.py index 56fbeaa9..c66698c5 100644 --- a/io_mesh_pdb/__init__.py +++ b/io_mesh_pdb/__init__.py @@ -67,7 +67,7 @@ from . import ( # GUI # This is the class for the file dialog of the importer. -class ImportPDB(Operator, ImportHelper): +class IMPORT_OT_pdb(Operator, ImportHelper): bl_idname = "import_mesh.pdb" bl_label = "Import Protein Data Bank(*.pdb)" bl_options = {'PRESET', 'UNDO'} @@ -262,7 +262,7 @@ class ImportPDB(Operator, ImportHelper): # This is the class for the file dialog of the exporter. -class ExportPDB(Operator, ExportHelper): +class EXPORT_OT_pdb(Operator, ExportHelper): bl_idname = "export_mesh.pdb" bl_label = "Export Protein Data Bank(*.pdb)" filename_ext = ".pdb" @@ -292,13 +292,14 @@ class ExportPDB(Operator, ExportHelper): # The entry into the menu 'file -> import' def menu_func_import(self, context): - self.layout.operator(ImportPDB.bl_idname, text="Protein Data Bank (.pdb)") + self.layout.operator(IMPORT_OT_pdb.bl_idname, text="Protein Data Bank (.pdb)") # The entry into the menu 'file -> export' def menu_func_export(self, context): - self.layout.operator(ExportPDB.bl_idname, text="Protein Data Bank (.pdb)") + self.layout.operator(EXPORT_OT_pdb.bl_idname, text="Protein Data Bank (.pdb)") -classes = (ImportPDB, ExportPDB) +classes = (IMPORT_OT_pdb, + EXPORT_OT_pdb) def register(): from bpy.utils import register_class |