[Bf-extensions-cvs] [6b5ff618] master: Renaming classes as documented here: https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Python_API/Addons
Clemens Barth
noreply at git.blender.org
Fri Mar 15 20:02:48 CET 2019
Commit: 6b5ff61808da9a6fb46b0f4cdab24e8cc21749ae
Author: Clemens Barth
Date: Fri Mar 15 20:02:42 2019 +0100
Branches: master
https://developer.blender.org/rBAC6b5ff61808da9a6fb46b0f4cdab24e8cc21749ae
Renaming classes as documented here: https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Python_API/Addons
===================================================================
M io_mesh_xyz/__init__.py
===================================================================
diff --git a/io_mesh_xyz/__init__.py b/io_mesh_xyz/__init__.py
index 9143e60b..22f2ff7b 100644
--- a/io_mesh_xyz/__init__.py
+++ b/io_mesh_xyz/__init__.py
@@ -64,7 +64,7 @@ from . import export_xyz
# This is the class for the file dialog.
-class ImportXYZ(Operator, ImportHelper):
+class IMPORT_OT_xyz(Operator, ImportHelper):
bl_idname = "import_mesh.xyz"
bl_label = "Import XYZ (*.xyz)"
bl_options = {'PRESET', 'UNDO'}
@@ -197,7 +197,7 @@ class ImportXYZ(Operator, ImportHelper):
# This is the class for the file dialog of the exporter.
-class ExportXYZ(Operator, ExportHelper):
+class EXPORT_OT_xyz(Operator, ExportHelper):
bl_idname = "export_mesh.xyz"
bl_label = "Export XYZ (*.xyz)"
filename_ext = ".xyz"
@@ -227,13 +227,14 @@ class ExportXYZ(Operator, ExportHelper):
# The entry into the menu 'file -> import'
def menu_func(self, context):
- self.layout.operator(ImportXYZ.bl_idname, text="XYZ (.xyz)")
+ self.layout.operator(IMPORT_OT_xyz.bl_idname, text="XYZ (.xyz)")
# The entry into the menu 'file -> export'
def menu_func_export(self, context):
- self.layout.operator(ExportXYZ.bl_idname, text="XYZ (.xyz)")
+ self.layout.operator(EXPORT_OT_xyz.bl_idname, text="XYZ (.xyz)")
-classes = (ImportXYZ, ExportXYZ)
+classes = (IMPORT_OT_xyz,
+ EXPORT_OT_xyz)
def register():
from bpy.utils import register_class
More information about the Bf-extensions-cvs
mailing list