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_obj/export_obj.py')
-rw-r--r--io_scene_obj/export_obj.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py
index e28d607d..15b80ab3 100644
--- a/io_scene_obj/export_obj.py
+++ b/io_scene_obj/export_obj.py
@@ -396,15 +396,16 @@ def write_file(filepath, objects, scene,
if me is None:
continue
+ # _must_ do this before applying transformation, else tessellation may differ
+ if EXPORT_TRI:
+ # _must_ do this first since it re-allocs arrays
+ mesh_triangulate(me)
+
me.transform(EXPORT_GLOBAL_MATRIX * ob_mat)
# If negative scaling, we have to invert the normals...
if ob_mat.determinant() < 0.0:
me.flip_normals()
- if EXPORT_TRI:
- # _must_ do this first since it re-allocs arrays
- mesh_triangulate(me)
-
if EXPORT_UV:
faceuv = len(me.uv_textures) > 0
if faceuv: