diff options
Diffstat (limited to 'io_mesh_ply/__init__.py')
-rw-r--r-- | io_mesh_ply/__init__.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/io_mesh_ply/__init__.py b/io_mesh_ply/__init__.py index c0fcc8dc..25066040 100644 --- a/io_mesh_ply/__init__.py +++ b/io_mesh_ply/__init__.py @@ -56,14 +56,11 @@ from bpy.props import ( from bpy_extras.io_utils import ( ImportHelper, ExportHelper, - orientation_helper_factory, + orientation_helper, axis_conversion, ) -IOPLYOrientationHelper = orientation_helper_factory("IOPLYOrientationHelper", axis_forward='Y', axis_up='Z') - - class ImportPLY(bpy.types.Operator, ImportHelper): """Load a PLY geometry file""" bl_idname = "import_mesh.ply" @@ -94,7 +91,9 @@ class ImportPLY(bpy.types.Operator, ImportHelper): return {'FINISHED'} -class ExportPLY(bpy.types.Operator, ExportHelper, IOPLYOrientationHelper): + +@orientation_helper(axis_forward='Y', axis_up='Z') +class ExportPLY(bpy.types.Operator, ExportHelper): """Export a single object as a Stanford PLY with normals, """ \ """colors and texture coordinates""" bl_idname = "export_mesh.ply" |