mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Fix filename -> ifcopenshell.file
This commit is contained in:
@@ -70,7 +70,8 @@ def import_ifc(filename, use_names, process_relations, blender_booleans):
|
|||||||
print(f"Reading {bpy.path.basename(filename)}...")
|
print(f"Reading {bpy.path.basename(filename)}...")
|
||||||
settings = ifcopenshell_geom.settings()
|
settings = ifcopenshell_geom.settings()
|
||||||
settings.set(settings.DISABLE_OPENING_SUBTRACTIONS, blender_booleans)
|
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()
|
valid_file = iterator.initialize()
|
||||||
if not valid_file:
|
if not valid_file:
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user