diff --git a/src/blenderbim/blenderbim/bim/module/model/slab.py b/src/blenderbim/blenderbim/bim/module/model/slab.py index e43a2d11f6..f805a319cc 100644 --- a/src/blenderbim/blenderbim/bim/module/model/slab.py +++ b/src/blenderbim/blenderbim/bim/module/model/slab.py @@ -176,6 +176,8 @@ class DumbSlabGenerator: obj.matrix_world = matrix_world bpy.context.view_layer.update() self.collection.objects.link(obj) + rotation = mathutils.Matrix.Rotation(self.x_angle, 4, 'X') + obj.matrix_world = rotation element = blenderbim.core.root.assign_class( tool.Ifc, diff --git a/src/blenderbim/blenderbim/bim/module/model/wall.py b/src/blenderbim/blenderbim/bim/module/model/wall.py index 789f00cccb..83cd8c46b5 100644 --- a/src/blenderbim/blenderbim/bim/module/model/wall.py +++ b/src/blenderbim/blenderbim/bim/module/model/wall.py @@ -278,6 +278,8 @@ class ChangeExtrusionXAngle(bpy.types.Operator, tool.Ifc.Operator): is_global=True, should_sync_changes_first=False, ) + rotation = mathutils.Matrix.Rotation(x_angle, 4, 'X') + obj.matrix_world = rotation if wall_objs: DumbWallRecalculator().recalculate(wall_objs) return {"FINISHED"}