Fix filename -> ifcopenshell.file

This commit is contained in:
Krzysztof Trzciński
2019-07-16 18:33:54 +01:00
parent 6284b3960d
commit 3f3b548d74
@@ -70,7 +70,8 @@ def import_ifc(filename, use_names, process_relations, blender_booleans):
print(f"Reading {bpy.path.basename(filename)}...")
settings = ifcopenshell_geom.settings()
settings.set(settings.DISABLE_OPENING_SUBTRACTIONS, blender_booleans)
iterator = ifcopenshell_geom.iterator(settings, filename)
ifc_file = ifcopenshell.file(filename)
iterator = ifcopenshell_geom.iterator(settings, ifc_file)
valid_file = iterator.initialize()
if not valid_file:
return False