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:
authorDalai Felinto <dfelinto@gmail.com>2018-09-28 21:57:39 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-09-28 21:58:23 +0300
commit345d7ace8756781708ae2dd3f8912be498ebffff (patch)
tree6766012c85ed760f58bc28a380fd82ff531bd188 /io_mesh_ply
parentcd90aa081b33a579f12f2b4a9f1452ce68c6d2c4 (diff)
Use orientation_helper decorator
The warnings in the console are getting on the way. May as well update the addons even if they are still mostly not ported to 2.8. We can probably ditch orientation_helper_factory altogether.
Diffstat (limited to 'io_mesh_ply')
-rw-r--r--io_mesh_ply/__init__.py9
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"