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:
authorMichael Soluyanov <crantisz>2019-09-27 17:45:57 +0300
committerAntonio Vazquez <blendergit@gmail.com>2019-09-27 17:48:34 +0300
commit48ef856ed3c42d54535444ec2d62b978b6f3506b (patch)
tree997c760b03e527951f0d0b715d7a4350a603ee9c /io_curve_svg
parenteba6fe23d3bb35175df5fd8fe3cfa25d1588c61a (diff)
Fix D4319 (scaling of svg in different page scales)
Looks like my code in https://developer.blender.org/D4319 apply SVG scaling second time.. sorry This is fix of it Test files 10cm rect with different page scale: {F7777057} {F7777056} Must be same size Reviewers: antoniov Differential Revision: https://developer.blender.org/D5917
Diffstat (limited to 'io_curve_svg')
-rw-r--r--io_curve_svg/import_svg.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/io_curve_svg/import_svg.py b/io_curve_svg/import_svg.py
index 0742bc4e..013b5bc5 100644
--- a/io_curve_svg/import_svg.py
+++ b/io_curve_svg/import_svg.py
@@ -1757,11 +1757,8 @@ class SVGGeometrySVG(SVGGeometryContainer):
if len(viewbox) == 4 and unit in ('cm', 'mm', 'in', 'pt', 'pc'):
- #one unit equals whis svg units:
- unitscale = document_height / (viewbox[3] - viewbox[1])
-
#convert units to BU:
- unitscale = unitscale * units[unit] / 90 * 1000 / 39.3701
+ unitscale = units[unit] / 90 * 1000 / 39.3701
#apply blender unit scale:
unitscale = unitscale / bpy.context.scene.unit_settings.scale_length