diff --git a/src/ifcpatch/ifcpatch/recipes/OffsetObjectPlacements.py b/src/ifcpatch/ifcpatch/recipes/OffsetObjectPlacements.py index ab6b4c151d..8582aea6e5 100644 --- a/src/ifcpatch/ifcpatch/recipes/OffsetObjectPlacements.py +++ b/src/ifcpatch/ifcpatch/recipes/OffsetObjectPlacements.py @@ -86,12 +86,12 @@ class Patcher: self.ax = ax self.ay = ay self.az = az - if self.ay is not None: - self.angle_type = "3D" - elif self.ay is not None: + if self.ax is None: + self.angle_type = None + elif self.ay is None: self.angle_type = "2D" else: - self.angle_type = None + self.angle_type = "3D" def patch(self): absolute_placements = [] diff --git a/src/ifcpatch/ifcpatch/recipes/SetWorldCoordinateSystem.py b/src/ifcpatch/ifcpatch/recipes/SetWorldCoordinateSystem.py index 759948315a..33624ef169 100644 --- a/src/ifcpatch/ifcpatch/recipes/SetWorldCoordinateSystem.py +++ b/src/ifcpatch/ifcpatch/recipes/SetWorldCoordinateSystem.py @@ -18,7 +18,6 @@ import math import numpy as np -import ifcopenshell class Patcher: