From 08eb51821ce3e4f9cbe9b69428c6e2aaff9ce164 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 3 May 2016 16:27:07 +1000 Subject: Fix T48323: VRML2 tessellation fails in some cases Apply tessellation before transformation, patch from @anpaza. --- io_scene_vrml2/export_vrml2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/io_scene_vrml2/export_vrml2.py b/io_scene_vrml2/export_vrml2.py index 0a664e27..06f79fc1 100644 --- a/io_scene_vrml2/export_vrml2.py +++ b/io_scene_vrml2/export_vrml2.py @@ -178,8 +178,9 @@ def save_object(fw, global_matrix, bm = bmesh.new() bm.from_mesh(me) - bm.transform(global_matrix * obj.matrix_world) + # triangulate first so tessellation matches the view-port. bmesh.ops.triangulate(bm, faces=bm.faces) + bm.transform(global_matrix * obj.matrix_world) # default empty material_colors = [] -- cgit v1.2.3