Fix filename -> ifcopenshell.file

This commit is contained in:
Krzysztof Trzciński
2019-07-16 18:33:54 +01:00
committed by Dion Moult
parent 748f826418
commit c3a3cbee3f
@@ -70,8 +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)
file = ifcopenshell.open(filename)
iterator = ifcopenshell_geom.iterator(settings, file)
ifc_file = ifcopenshell.file(filename)
iterator = ifcopenshell_geom.iterator(settings, ifc_file)
valid_file = iterator.initialize()
if not valid_file:
return False