From 4ee7689e0657b14469c7d20185fcbabe858b28e7 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin <sergey.vfx@gmail.com> Date: Tue, 6 Nov 2012 10:13:25 +0000 Subject: [PATCH] SVG import: corretc multiplier for mm, cm and in to match blender's unit system --- io_curve_svg/import_svg.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py index 90cd89f77..3bfdca328 100644 --- a/io_curve_svg/import_svg.py +++ b/io_curve_svg/import_svg.py @@ -32,9 +32,9 @@ from . import svg_colors # TODO: "em" and "ex" aren't actually supported SVGUnits = {"": 1.0, "px": 1.0, - "in": 90, - "mm": 90 / 25.4, - "cm": 90 / 2.54, + "in": 90.0 / 12.0 * 0.3048, + "mm": 90.0 / 1000.0, + "cm": 90.0 / 100.0, "pt": 1.25, "pc": 15.0, "em": 1.0, -- GitLab