[Bf-extensions-cvs] [60c98c33] master: DXF Import: fix importing circles incorrectly when unit scale is used

Philipp Oeser noreply at git.blender.org
Mon Mar 18 11:41:28 CET 2019


Commit: 60c98c332423734d82f197b2f2d43023fb5794ba
Author: Philipp Oeser
Date:   Mon Mar 18 11:35:38 2019 +0100
Branches: master
https://developer.blender.org/rBA60c98c332423734d82f197b2f2d43023fb5794ba

DXF Import: fix importing circles incorrectly when unit scale is used

followup to rBA83f7e2473b7a where scaling of points was fixed (but
actually did it on the center as well -- which led to incorrect results
if center was not at the origin)

Fixes T62585

===================================================================

M	io_import_dxf/dxfimport/do.py

===================================================================

diff --git a/io_import_dxf/dxfimport/do.py b/io_import_dxf/dxfimport/do.py
index 487e4001..1ba3219a 100644
--- a/io_import_dxf/dxfimport/do.py
+++ b/io_import_dxf/dxfimport/do.py
@@ -395,7 +395,7 @@ class Do:
             b[i].handle_left_type = 'AUTO'
             b[i].handle_right_type = 'AUTO'
 
-        vc = self.proj(en.center)
+        vc = Vector(en.center)
         clockwise = Matrix(((0, -1, 0), (1, 0, 0), (0, 0, 1)))
 
         r = major



More information about the Bf-extensions-cvs mailing list