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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-11-06 14:13:25 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-11-06 14:13:25 +0400
commit4ee7689e0657b14469c7d20185fcbabe858b28e7 (patch)
treebd97dcfe9e054b1e3a9446a2f6be0728070ae97f
parent55fc6729992e56a37035aee1c8506f073ac0e3b9 (diff)
SVG import: corretc multiplier for mm, cm and in to match blender's unit system
-rw-r--r--io_curve_svg/import_svg.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py
index 90cd89f7..3bfdca32 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,