[Bf-extensions-cvs] [9b58f80] master: Fix T49791: Distorted curves when importing SVG
Sergey Sharybin
noreply at git.blender.org
Fri Oct 21 16:31:59 CEST 2016
Commit: 9b58f808c2aae0a94b52680cc2be9edc53a57647
Author: Sergey Sharybin
Date: Fri Oct 21 16:31:28 2016 +0200
Branches: master
https://developer.blender.org/rBA9b58f808c2aae0a94b52680cc2be9edc53a57647
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