mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 06:18:09 +00:00
Fix bug where existing blender offsets weren't used when importing two offset models consecutively
This commit is contained in:
@@ -477,6 +477,9 @@ class IfcImporter:
|
|||||||
return products
|
return products
|
||||||
|
|
||||||
def calculate_model_offset(self):
|
def calculate_model_offset(self):
|
||||||
|
props = bpy.context.scene.BIMGeoreferenceProperties
|
||||||
|
if props.has_blender_offset:
|
||||||
|
return
|
||||||
project = self.file.by_type("IfcProject")[0]
|
project = self.file.by_type("IfcProject")[0]
|
||||||
site = self.find_decomposed_ifc_class(project, "IfcSite")
|
site = self.find_decomposed_ifc_class(project, "IfcSite")
|
||||||
if site and self.is_element_far_away(site[0]):
|
if site and self.is_element_far_away(site[0]):
|
||||||
|
|||||||
Reference in New Issue
Block a user