[Bf-extensions-cvs] [84572850] master: D16212: Curve Tools: Ensure nested paths in exported SVG look as expected. (Authored by Johan Althoff (teetow))

Vladimir Spivak noreply at git.blender.org
Sun Oct 23 00:13:29 CEST 2022


Commit: 8457285056e376827ce3863b880b9f01dcec50f8
Author: Vladimir Spivak
Date:   Sun Oct 23 01:00:28 2022 +0300
Branches: master
https://developer.blender.org/rBA8457285056e376827ce3863b880b9f01dcec50f8

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

===================================================================

M	curve_tools/exports.py

===================================================================

diff --git a/curve_tools/exports.py b/curve_tools/exports.py
index f8d6e74c..1c0ebd85 100644
--- a/curve_tools/exports.py
+++ b/curve_tools/exports.py
@@ -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>')



More information about the Bf-extensions-cvs mailing list