[Bf-extensions-cvs] [7431449] blender-v2.78-release: Fix T49791: Distorted curves when importing SVG
Sergey Sharybin
noreply at git.blender.org
Mon Oct 24 12:35:55 CEST 2016
Commit: 7431449db6bd37edb3458f4afbec9034fb1a324c
Author: Sergey Sharybin
Date: Fri Oct 21 16:31:28 2016 +0200
Branches: blender-v2.78-release
https://developer.blender.org/rBA7431449db6bd37edb3458f4afbec9034fb1a324c
Fix T49791: Distorted curves when importing SVG
===================================================================
M io_curve_svg/import_svg.py
===================================================================
diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py
index b09dfd1..c8c492f 100644
--- a/io_curve_svg/import_svg.py
+++ b/io_curve_svg/import_svg.py
@@ -652,6 +652,11 @@ class SVGPathParser:
return
+ last = self._spline['points'][-1]
+ if last['handle_right_type'] == 'VECTOR' and handle_left_type == 'FREE':
+ last['handle_right'] = (last['x'], last['y'])
+ last['handle_right_type'] = 'FREE'
+
point = {'x': x,
'y': y,
More information about the Bf-extensions-cvs
mailing list