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:
authorCampbell Barton <ideasman42@gmail.com>2011-05-25 02:20:54 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-05-25 02:20:54 +0400
commit86bd3cc31b636070da779f21b1fdc128faf1fc5d (patch)
tree485b42f72598708db283bd56c6ccb6ecdb5b742d /io_scene_x3d/export_x3d.py
parentb50a40ef9dbeb1554f66bedd21d0905875ba1172 (diff)
axis conversion for X3D and OBJ operators
Diffstat (limited to 'io_scene_x3d/export_x3d.py')
-rw-r--r--io_scene_x3d/export_x3d.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py
index 43033a0c..86d2209b 100644
--- a/io_scene_x3d/export_x3d.py
+++ b/io_scene_x3d/export_x3d.py
@@ -745,10 +745,12 @@ def export(file,
def save(operator, context, filepath="",
- use_selection=True,
- use_apply_modifiers=False,
- use_triangulate=False,
- use_compress=False):
+ use_selection=True,
+ use_apply_modifiers=False,
+ use_triangulate=False,
+ use_compress=False,
+ global_matrix=None,
+ ):
if use_compress:
if not filepath.lower().endswith('.x3dz'):
@@ -772,7 +774,8 @@ def save(operator, context, filepath="",
if file is None:
file = open(filepath, "w")
- global_matrix = mathutils.Matrix.Rotation(-(math.pi / 2.0), 4, 'X')
+ if global_matrix is None:
+ global_matrix = mathutils.Matrix()
export(file,
global_matrix,