From 812130fd0b0a54df16f233e78af176868e8deae6 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 24 Mar 2015 09:59:35 +0100 Subject: 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! --- io_scene_vrml2/__init__.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'io_scene_vrml2') diff --git a/io_scene_vrml2/__init__.py b/io_scene_vrml2/__init__.py index 594833c7..5ec34567 100644 --- a/io_scene_vrml2/__init__.py +++ b/io_scene_vrml2/__init__.py @@ -21,7 +21,7 @@ bl_info = { "name": "VRML2 (Virtual Reality Modeling Language)", "author": "Campbell Barton", - "blender": (2, 73, 0), + "blender": (2, 74, 0), "location": "File > Export", "description": "Exports mesh objects to VRML2, supporting vertex and material colors", "warning": "", @@ -45,12 +45,16 @@ from bpy.props import (CollectionProperty, FloatProperty, ) from bpy_extras.io_utils import (ExportHelper, - OrientationHelper, + orientation_helper_factory, path_reference_mode, axis_conversion, ) -class ExportVRML(bpy.types.Operator, ExportHelper, OrientationHelper): + +ExportVRMLOrientationHelper = orientation_helper_factory("ExportVRMLOrientationHelper", axis_forward='Z', axis_up='Y') + + +class ExportVRML(bpy.types.Operator, ExportHelper, ExportVRMLOrientationHelper): """Export mesh objects as a VRML2, colors and texture coordinates""" bl_idname = "export_scene.vrml2" bl_label = "Export VRML2" -- cgit v1.2.3