mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 13:48:03 +00:00
Fixed #3259
This commit is contained in:
@@ -948,6 +948,10 @@ class EditExtrusionAxis(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
depth = (end - start).length
|
depth = (end - start).length
|
||||||
z_axis = (end - start).normalized()
|
z_axis = (end - start).normalized()
|
||||||
y_axis = Vector((0, 0, 1))
|
y_axis = Vector((0, 0, 1))
|
||||||
|
# making sure z_axis != y_axis
|
||||||
|
if z_axis == y_axis:
|
||||||
|
y_axis = Vector((0,1,0))
|
||||||
|
|
||||||
x_axis = y_axis.cross(z_axis).normalized()
|
x_axis = y_axis.cross(z_axis).normalized()
|
||||||
y_axis = z_axis.cross(x_axis).normalized()
|
y_axis = z_axis.cross(x_axis).normalized()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user