Draft: Fix bug in getCubicDimensions function

This commit is contained in:
Amritpal Singh
2021-02-04 22:57:31 +05:30
parent 656c4919bc
commit d9e7ee46e6
+2
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)