Merge pull request #4366 from amrit3701/bug_fix/draft_getCubicDimensions

Draft: Fix bug in getCubicDimensions function
This commit is contained in:
Yorik van Havre
2021-02-05 13:09:31 +01:00
committed by GitHub

View File

@@ -99,6 +99,8 @@ def getCubicDimensions(shape):
# getting length and width
vx = vec(base.Edges[0])
vy = vec(base.Edges[1])
if round(vx.Length) == round(vy.Length):
vy = vec(base.Edges[2])
# getting rotations
rotZ = DraftVecUtils.angle(vx)