From af5838cba6e2902ba3434569aa5de50928bea65c Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Fri, 7 Jun 2024 16:30:19 +1000 Subject: [PATCH] Fix #4821. Bug where empty true norths were still set. --- .../ifcopenshell/api/georeference/edit_georeferencing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/georeference/edit_georeferencing.py b/src/ifcopenshell-python/ifcopenshell/api/georeference/edit_georeferencing.py index 08d7361935..12ac54693a 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/georeference/edit_georeferencing.py +++ b/src/ifcopenshell-python/ifcopenshell/api/georeference/edit_georeferencing.py @@ -109,7 +109,7 @@ class Usecase: self.set_true_north() def set_true_north(self): - if self.settings["true_north"] == None: + if not self.settings["true_north"]: return for context in self.file.by_type("IfcGeometricRepresentationContext", include_subtypes=False): if context.TrueNorth: