diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-03-24 11:59:35 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-03-24 11:59:35 +0300 |
commit | 812130fd0b0a54df16f233e78af176868e8deae6 (patch) | |
tree | e634b0156daaa07f823050c704a491639ece4d41 /io_mesh_ply | |
parent | b1a53b343db65812416f5a877317a5e6bb69afa0 (diff) |
Fix T44089: restore default orientation axes of each addons to stae before rBAbfbabc0592b8.
Now using a class factory to allow customization of those defaults axes, still way less
verbose than previous code!
Diffstat (limited to 'io_mesh_ply')
-rw-r--r-- | io_mesh_ply/__init__.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/io_mesh_ply/__init__.py b/io_mesh_ply/__init__.py index 5fa9b264..6cf40830 100644 --- a/io_mesh_ply/__init__.py +++ b/io_mesh_ply/__init__.py @@ -21,7 +21,7 @@ bl_info = { "name": "Stanford PLY format", "author": "Bruce Merry, Campbell Barton", - "blender": (2, 73, 0), + "blender": (2, 74, 0), "location": "File > Import-Export", "description": "Import-Export PLY mesh data withs UV's and vertex colors", "warning": "", @@ -53,11 +53,14 @@ from bpy.props import (CollectionProperty, ) from bpy_extras.io_utils import (ImportHelper, ExportHelper, - OrientationHelper, + orientation_helper_factory, 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" @@ -88,7 +91,7 @@ class ImportPLY(bpy.types.Operator, ImportHelper): return {'FINISHED'} -class ExportPLY(bpy.types.Operator, ExportHelper, OrientationHelper): +class ExportPLY(bpy.types.Operator, ExportHelper, IOPLYOrientationHelper): """Export a single object as a Stanford PLY with normals, """ \ """colors and texture coordinates""" bl_idname = "export_mesh.ply" |