mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-06 07:51:47 +00:00
edit_true_north: handle unsetting case when TrueNorth is already None
This commit is contained in:
@@ -65,6 +65,9 @@ def edit_true_north(file: ifcopenshell.file, true_north: Optional[Union[tuple[fl
|
||||
ifcopenshell.util.element.remove_deep2(file, old_true_north)
|
||||
continue
|
||||
|
||||
if true_north is None:
|
||||
continue
|
||||
|
||||
if context.TrueNorth:
|
||||
if file.get_total_inverses(context.TrueNorth) != 1:
|
||||
context.TrueNorth = file.create_entity("IfcDirection")
|
||||
|
||||
Reference in New Issue
Block a user