Minor fix during loading arrays

This commit is contained in:
Dion Moult
2023-09-24 13:18:32 +10:00
parent 0993736cea
commit 0707f37247
+1 -1
View File
@@ -1939,7 +1939,7 @@ class IfcImporter:
def setup_arrays(self):
for element in self.file.by_type("IfcElement"):
pset_data = ifcopenshell.util.element.get_pset(element, "BBIM_Array")
if not pset_data["Data"]: # skip array children
if pset_data or not pset_data.get("Data", None): # skip array children
continue
for i in range(len(json.loads(pset_data["Data"]))):
tool.Blender.Modifier.Array.set_children_lock_state(element, i, True)