See #6201. Another typing regression fix.

This commit is contained in:
Dion Moult
2025-02-23 18:30:58 +11:00
parent b42c3ba8c2
commit 29a890662e
+1
View File
@@ -1180,6 +1180,7 @@ class Drawing(bonsai.core.tool.Drawing):
@classmethod
def get_default_titleblock_path(cls, name: str) -> str:
project = tool.Ifc.get().by_type("IfcProject")[0]
props = tool.Drawing.get_document_props()
titleblocks_dir = (
ifcopenshell.util.element.get_pset(project, "BBIM_Documentation", "TitleblocksDir") or props.titleblocks_dir
)