Fix #978. Minor fix.

This commit is contained in:
Dion Moult
2020-09-05 14:15:37 +10:00
parent 45b805b05f
commit 57bc6f7763
@@ -3699,7 +3699,10 @@ class ActivateDrawingStyle(bpy.types.Operator):
self.include_global_ids = []
self.exclude_global_ids = []
for ifc_file in bpy.context.scene.DocProperties.ifc_files:
ifc = ifcopenshell.open(ifc_file.name)
try:
ifc = ifcopenshell.open(ifc_file.name)
except:
continue
if self.drawing_style.include_query:
results = self.selector.parse(ifc, self.drawing_style.include_query)
self.include_global_ids.extend([e.GlobalId for e in results])