Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Spivak <cwolf3d@gmail.com>2022-10-23 01:00:28 +0300
committerVladimir Spivak <cwolf3d@gmail.com>2022-10-23 01:00:28 +0300
commit8457285056e376827ce3863b880b9f01dcec50f8 (patch)
tree312afd025ac0bef1a29e7cec9b7f2d1e793073d7
parent9d903a93f03b11ede3abaef14052869f50d650d3 (diff)
D16212: Curve Tools: Ensure nested paths in exported SVG look as expected. (Authored by Johan Althoff (teetow))
-rw-r--r--curve_tools/exports.py2
1 files changed, 1 insertions, 1 deletions
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>')