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:
authorPhilipp Oeser <info@graphics-engineer.com>2019-01-25 13:12:30 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-03-09 19:12:18 +0300
commit83f7e2473b7a9a5cba2866bc36aac07197e236f1 (patch)
tree895cfc720b0345fd05ba4d5b00a4eeb26c629977 /io_import_dxf
parentdc314a71c81b5bbb1dafa1a6b20d532d13b04e0b (diff)
Fix T60829: DXF Import: Unit Scale Not Applied to Circles
Maniphest Tasks: T60829 Differential Revision: https://developer.blender.org/D4254
Diffstat (limited to 'io_import_dxf')
-rw-r--r--io_import_dxf/dxfimport/do.py8
1 files changed, 4 insertions, 4 deletions
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