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:
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,