diff options
author | Chris Foster <cdbfoster@gmail.com> | 2013-04-11 01:47:33 +0400 |
---|---|---|
committer | Chris Foster <cdbfoster@gmail.com> | 2013-04-11 01:47:33 +0400 |
commit | 93be85532ba2a3bf030f3211f201c0fe4e055d53 (patch) | |
tree | ff021d6f3364b8946722a9705da15a7532bdacff /io_scene_x/__init__.py | |
parent | 4c8bfbe850a67d8b99f090950bd3af54e1eae42e (diff) |
Re-added Flip Normals option by request. Also removed WIP warning.
Diffstat (limited to 'io_scene_x/__init__.py')
-rw-r--r-- | io_scene_x/__init__.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/io_scene_x/__init__.py b/io_scene_x/__init__.py index f1fa1c4c..519ca16c 100644 --- a/io_scene_x/__init__.py +++ b/io_scene_x/__init__.py @@ -21,12 +21,11 @@ bl_info = { "name": "DirectX X Format", "author": "Chris Foster", - "version": (3, 0, 0), + "version": (3, 0, 1), "blender": (2, 66, 0), "location": "File > Export > DirectX (.x)", "description": "Export mesh vertices, UV's, materials, textures, "\ "vertex colors, armatures, empties, and actions.", - "warning": "This script is a WIP!", "wiki_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"\ "Scripts/Import-Export/DirectX_Exporter", "tracker_url": "https://projects.blender.org/tracker/index.php?"\ @@ -64,6 +63,11 @@ class ExportDirectX(bpy.types.Operator): description="Export mesh normals", default=True) + FlipNormals = BoolProperty( + name=" Flip Normals", + description="Flip mesh normals before export", + default=False) + ExportUVCoordinates = BoolProperty( name=" Export UV Coordinates", description="Export mesh UV coordinates, if any", @@ -134,7 +138,7 @@ class ExportDirectX(bpy.types.Operator): def execute(self, context): self.filepath = bpy.path.ensure_ext(self.filepath, ".x") - import export_x + from . import export_x Exporter = export_x.DirectXExporter(self, context) Exporter.Export() return {'FINISHED'} |