mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 03:14:23 +00:00
Temporarily for ifcsqlite disable calculating model offset and loading element types #7085
To keep models loadable
This commit is contained in:
@@ -463,6 +463,10 @@ class IfcImporter:
|
||||
return False
|
||||
|
||||
def calculate_model_offset(self) -> None:
|
||||
# TODO:
|
||||
if isinstance(self.file, ifcopenshell.sqlite):
|
||||
print("WARNING. Calculating model offset for IFCSQLite is not supported.")
|
||||
return
|
||||
props = tool.Georeference.get_georeference_props()
|
||||
if self.ifc_import_settings.false_origin_mode == "MANUAL":
|
||||
tool.Loader.set_manual_blender_offset(self.file)
|
||||
@@ -516,6 +520,10 @@ class IfcImporter:
|
||||
self.set_matrix_world(obj, tool.Loader.apply_blender_offset_to_matrix_world(obj, grid_placement))
|
||||
|
||||
def create_element_types(self):
|
||||
# TODO:
|
||||
if isinstance(self.file, ifcopenshell.sqlite):
|
||||
print("WARNING. Loading element types from IFCSQLite is not supported.")
|
||||
return
|
||||
for element_type in self.element_types:
|
||||
if not element_type:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user