mirror of
https://github.com/blender/blender-addons.git
synced 2025-08-16 15:35:05 +00:00
Fix T48323: VRML2 tessellation fails in some cases
Apply tessellation before transformation, patch from @anpaza.
This commit is contained in:
@ -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 = []
|
||||
|
Reference in New Issue
Block a user