When changing slab `x_angle` the rotation matrix now takes into account object's world matrix.
This commit is contained in:
Bruno Perdigão
2025-03-11 16:11:47 -03:00
parent a32735ac6a
commit 41c1c6e8fa
@@ -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: