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:
authorBastien Montagne <montagne29@wanadoo.fr>2015-03-24 11:59:35 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-03-24 18:04:23 +0300
commitaa8d2c48543bb9b277f7ce58d6a6875144eb12c0 (patch)
tree3cbd6cbbe560f701136461d1fa06615391ad137b /io_scene_vrml2/__init__.py
parent06adc998b17cc6505b22ff3ade04c559693aea29 (diff)
Fix T44089: restore default orientation axes of each addons to stae before rBAbfbabc0592b8.v2.74-rc3
Now using a class factory to allow customization of those defaults axes, still way less verbose than previous code!
Diffstat (limited to 'io_scene_vrml2/__init__.py')
-rw-r--r--io_scene_vrml2/__init__.py10
1 files changed, 7 insertions, 3 deletions
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"