mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix #6291.
When changing slab `x_angle` the rotation matrix now takes into account object's world matrix.
This commit is contained in:
@@ -304,6 +304,7 @@ class ChangeExtrusionXAngle(bpy.types.Operator, tool.Ifc.Operator):
|
||||
|
||||
# Object rotation
|
||||
rot_mat = mathutils.Matrix.Rotation(x_angle, 4, "X")
|
||||
rot_mat = obj.matrix_world @ rot_mat
|
||||
obj.rotation_euler = rot_mat.to_euler()
|
||||
|
||||
if layer2_objs:
|
||||
|
||||
Reference in New Issue
Block a user