Fix #5275. Fix bug where orthographic sections would appear over freestyle linework in perspective views.

This commit is contained in:
Dion Moult
2024-09-02 16:51:25 +10:00
parent aa7e80fc8c
commit 0b8a701423
@@ -692,8 +692,9 @@ class CreateDrawing(bpy.types.Operator):
path.attrib["d"] = new_d path.attrib["d"] = new_d
pass pass
self.generate_bisect_linework(context, root) if tool.Drawing.is_camera_orthographic():
self.merge_linework_and_add_metadata(root) self.generate_bisect_linework(context, root)
self.merge_linework_and_add_metadata(root)
with open(svg_path, "wb") as svg: with open(svg_path, "wb") as svg:
svg.write(etree.tostring(root)) svg.write(etree.tostring(root))