Use a tolerance when detecting project norths heuristically

This commit is contained in:
Dion Moult
2024-07-30 23:57:47 +10:00
parent 081b3fcf33
commit 6012695cfe
+1 -1
View File
@@ -695,7 +695,7 @@ class Loader(blenderbim.core.tool.Loader):
cls.settings.false_origin = ifcopenshell.util.geolocation.auto_xyz2enh(
ifc_file, *offset_point, should_return_in_map_units=False
)
if angle := ifcopenshell.util.geolocation.get_grid_north(ifc_file):
if (angle := ifcopenshell.util.geolocation.get_grid_north(ifc_file)) and not tool.Cad.is_x(angle, 0):
cls.settings.project_north = angle
cls.set_manual_blender_offset(ifc_file)