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:
-rw-r--r--io_curve_svg/import_svg.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py
index 28f40764..e84c9949 100644
--- a/io_curve_svg/import_svg.py
+++ b/io_curve_svg/import_svg.py
@@ -884,14 +884,17 @@ class SVGPathParser:
if cmd is None:
raise Exception('Unknown path command: {0}' . format(code))
- if cmd in {'Z', 'z'}:
+ if code in {'Z', 'z'}:
closed = True
else:
closed = False
+ if code in {'M', 'm'} and self._use_fill and not closed:
+ self._pathClose('z') # Ensure closed before MoveTo path command
+
cmd(code)
if self._use_fill and not closed:
- self._pathClose('z')
+ self._pathClose('z') # Ensure closed at the end of parsing
def getSplines(self):
"""