Fallback to legacy importer if diff feature enabled

This commit is contained in:
Dion Moult
2020-01-07 15:48:54 +11:00
parent dcaef14b5f
commit 13e0b77c7f
@@ -152,8 +152,8 @@ class IfcImporter():
self.create_spatial_hierarchy()
self.purge_diff()
self.patch_ifc()
if self.ifc_import_settings.should_use_legacy:
# TODO: deprecate after we confirm stability of iterator based import
# TODO: Deprecate after bug #682 is fixed and the new importer is stable
if self.ifc_import_settings.should_use_legacy or self.diff:
self.create_products_legacy()
else:
self.create_products()
@@ -197,11 +197,6 @@ class IfcImporter():
element = self.file.by_id(shape.guid)
if self.diff:
if element.GlobalId not in self.diff['added'] \
and element.GlobalId not in self.diff['changed'].keys():
return
print('Creating object {}'.format(element))
# TODO: make names more meaningful