[Bf-extensions-cvs] [83f7e247] master: Fix T60829: DXF Import: Unit Scale Not Applied to Circles
Philipp Oeser
noreply at git.blender.org
Sat Mar 9 17:14:21 CET 2019
Commit: 83f7e2473b7a9a5cba2866bc36aac07197e236f1
Author: Philipp Oeser
Date: Fri Jan 25 11:12:30 2019 +0100
Branches: master
https://developer.blender.org/rBA83f7e2473b7a9a5cba2866bc36aac07197e236f1
Fix T60829: DXF Import: Unit Scale Not Applied to Circles
Maniphest Tasks: T60829
Differential Revision: https://developer.blender.org/D4254
===================================================================
M io_import_dxf/dxfimport/do.py
===================================================================
diff --git a/io_import_dxf/dxfimport/do.py b/io_import_dxf/dxfimport/do.py
index 7fd3e262..487e4001 100644
--- a/io_import_dxf/dxfimport/do.py
+++ b/io_import_dxf/dxfimport/do.py
@@ -404,10 +404,10 @@ class Do:
r = r * en.radius
try:
- b[0].co = vc + r
- b[1].co = vc + r @ clockwise
- b[2].co = vc + r @ clockwise @ clockwise
- b[3].co = vc + r @ clockwise @ clockwise @ clockwise
+ b[0].co = self.proj(vc + r)
+ b[1].co = self.proj(vc + r @ clockwise)
+ b[2].co = self.proj(vc + r @ clockwise @ clockwise)
+ b[3].co = self.proj(vc + r @ clockwise @ clockwise @ clockwise)
except:
print("Circle center: ", vc, "radius: ", r)
raise
More information about the Bf-extensions-cvs
mailing list