D16212: Curve Tools: Ensure nested paths in exported SVG look as expected. (Authored by Johan Althoff (teetow))

This commit is contained in:
Vladimir Spivak 2022-10-23 01:00:28 +03:00
parent 9d903a93f0
commit 8457285056
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ class SvgExport(bpy.types.Operator, ExportHelper):
svg_view = ('' if self.unit_name == '-' else 'width="{0:.3f}{2}" height="{1:.3f}{2}" ')+'viewBox="0 0 {0:.3f} {1:.3f}">\n'
f.write('''<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" '''+svg_view.format(self.bounds[0], self.bounds[1], self.unit_name))
<svg xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" '''+svg_view.format(self.bounds[0], self.bounds[1], self.unit_name))
for obj in curves:
f.write(self.serialize_object(obj))
f.write('</svg>')