mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 10:11:46 +00:00
Fix #4821. Bug where empty true norths were still set.
This commit is contained in:
@@ -109,7 +109,7 @@ class Usecase:
|
|||||||
self.set_true_north()
|
self.set_true_north()
|
||||||
|
|
||||||
def set_true_north(self):
|
def set_true_north(self):
|
||||||
if self.settings["true_north"] == None:
|
if not self.settings["true_north"]:
|
||||||
return
|
return
|
||||||
for context in self.file.by_type("IfcGeometricRepresentationContext", include_subtypes=False):
|
for context in self.file.by_type("IfcGeometricRepresentationContext", include_subtypes=False):
|
||||||
if context.TrueNorth:
|
if context.TrueNorth:
|
||||||
|
|||||||
Reference in New Issue
Block a user