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-01-14 15:08:57 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-01-14 15:08:57 +0300
commitbfbabc0592b820ec948fa355805ed78a882f4943 (patch)
tree99ce02e98f051e85f49b5901797ca9511254d20b /io_scene_vrml2
parenta32177f76b250183612ac2f38ec29157b4f88c1d (diff)
Use new IOHelperOrientation class to handle forward/up axes.
Helps ensuring common behavior, and saves quite a few lines of code, too...
Diffstat (limited to 'io_scene_vrml2')
-rw-r--r--io_scene_vrml2/__init__.py30
1 files changed, 4 insertions, 26 deletions
diff --git a/io_scene_vrml2/__init__.py b/io_scene_vrml2/__init__.py
index befc5101..6bbf7862 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, 66, 0),
+ "blender": (2, 73, 0),
"location": "File > Export",
"description": "Exports mesh objects to VRML2, supporting vertex and material colors",
"warning": "",
@@ -45,13 +45,13 @@ from bpy.props import (CollectionProperty,
FloatProperty,
)
from bpy_extras.io_utils import (ExportHelper,
+ IOHelperOrientation,
path_reference_mode,
axis_conversion,
)
-class ExportVRML(bpy.types.Operator, ExportHelper):
- """Export mesh objects as a VRML2, """ \
- """colors and texture coordinates"""
+class ExportVRML(bpy.types.Operator, ExportHelper, IOHelperOrientation):
+ """Export mesh objects as a VRML2, colors and texture coordinates"""
bl_idname = "export_scene.vrml2"
bl_label = "Export VRML2"
@@ -86,28 +86,6 @@ class ExportVRML(bpy.types.Operator, ExportHelper):
default=True,
)
- axis_forward = EnumProperty(
- name="Forward",
- items=(('X', "X Forward", ""),
- ('Y', "Y Forward", ""),
- ('Z', "Z Forward", ""),
- ('-X', "-X Forward", ""),
- ('-Y', "-Y Forward", ""),
- ('-Z', "-Z Forward", ""),
- ),
- default='Z',
- )
- axis_up = EnumProperty(
- name="Up",
- items=(('X', "X Up", ""),
- ('Y', "Y Up", ""),
- ('Z', "Z Up", ""),
- ('-X', "-X Up", ""),
- ('-Y', "-Y Up", ""),
- ('-Z', "-Z Up", ""),
- ),
- default='Y',
- )
global_scale = FloatProperty(
name="Scale",
min=0.01, max=1000.0,