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.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py
index 3122df91..565db959 100644
--- a/io_curve_svg/import_svg.py
+++ b/io_curve_svg/import_svg.py
@@ -86,6 +86,11 @@ def SVGParseFloat(s, i=0):
while i < n and s[i].isdigit():
token += s[i]
i += 1
+ elif s[i].isspace() or s[i] == ',':
+ # Inkscape sometimes uses qeird float format with missed
+ # fractional part after dot. Suppose zero fractional part
+ # for this case
+ pass
else:
raise Exception('Invalid float value near ' + s[start:start + 10])