diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-18 09:09:07 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-18 09:09:07 +0400 |
commit | 34680d1f7b31f59cacb10f3782fd100bbf503b3d (patch) | |
tree | 1ebd6ceb492e0e8395c38ea5aaf3d7496ab4d9cc /io_scene_fbx/__init__.py | |
parent | c406858e15028667e2e2a0e47ee3530eb6e65c45 (diff) |
fix for invalid axis being allowed on import/export
Diffstat (limited to 'io_scene_fbx/__init__.py')
-rw-r--r-- | io_scene_fbx/__init__.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py index a805f713..d17e2dd5 100644 --- a/io_scene_fbx/__init__.py +++ b/io_scene_fbx/__init__.py @@ -41,7 +41,12 @@ if "bpy" in locals(): import bpy from bpy.props import StringProperty, BoolProperty, FloatProperty, EnumProperty -from bpy_extras.io_utils import ExportHelper, path_reference_mode, axis_conversion + +from bpy_extras.io_utils import (ExportHelper, + path_reference_mode, + axis_conversion, + axis_conversion_ensure, + ) class ExportFBX(bpy.types.Operator, ExportHelper): @@ -132,6 +137,9 @@ class ExportFBX(bpy.types.Operator, ExportHelper): def check_extension(self): return self.batch_mode == 'OFF' + def check(self, context): + return axis_conversion_ensure(self, "axis_forward", "axis_up") + def execute(self, context): from mathutils import Matrix if not self.filepath: |