mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-01 12:40:07 +00:00
Use a tolerance when detecting project norths heuristically
This commit is contained in:
@@ -695,7 +695,7 @@ class Loader(blenderbim.core.tool.Loader):
|
|||||||
cls.settings.false_origin = ifcopenshell.util.geolocation.auto_xyz2enh(
|
cls.settings.false_origin = ifcopenshell.util.geolocation.auto_xyz2enh(
|
||||||
ifc_file, *offset_point, should_return_in_map_units=False
|
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.settings.project_north = angle
|
||||||
cls.set_manual_blender_offset(ifc_file)
|
cls.set_manual_blender_offset(ifc_file)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user