This commit is contained in:
Dion Moult
2026-01-15 22:00:51 +11:00
parent 47a2c1d21a
commit 8060c790ed
3 changed files with 18 additions and 16 deletions
+3 -1
View File
@@ -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(