mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 05:00:53 +00:00
Black
This commit is contained in:
@@ -588,7 +588,9 @@ class ChangeExtrusionXAngle(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
new_rotation = rotation_quat @ rotation
|
new_rotation = rotation_quat @ rotation
|
||||||
|
|
||||||
# Reconstruct matrix_world with same translation, new rotation, same scale
|
# Reconstruct matrix_world with same translation, new rotation, same scale
|
||||||
obj.matrix_world = Matrix.Translation(translation) @ new_rotation.to_matrix().to_4x4() @ Matrix.Scale(1, 4)
|
obj.matrix_world = (
|
||||||
|
Matrix.Translation(translation) @ new_rotation.to_matrix().to_4x4() @ Matrix.Scale(1, 4)
|
||||||
|
)
|
||||||
bpy.context.view_layer.update()
|
bpy.context.view_layer.update()
|
||||||
|
|
||||||
bonsai.core.geometry.switch_representation(
|
bonsai.core.geometry.switch_representation(
|
||||||
|
|||||||
Reference in New Issue
Block a user