mirror of
https://github.com/blender/blender-addons.git
synced 2025-08-20 13:22:58 +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 = bmesh.new()
|
||||||
bm.from_mesh(me)
|
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)
|
bmesh.ops.triangulate(bm, faces=bm.faces)
|
||||||
|
bm.transform(global_matrix * obj.matrix_world)
|
||||||
|
|
||||||
# default empty
|
# default empty
|
||||||
material_colors = []
|
material_colors = []
|
||||||
|
Reference in New Issue
Block a user