mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-07 04:46:25 +00:00
Minor fix during loading arrays
This commit is contained in:
@@ -1939,7 +1939,7 @@ class IfcImporter:
|
|||||||
def setup_arrays(self):
|
def setup_arrays(self):
|
||||||
for element in self.file.by_type("IfcElement"):
|
for element in self.file.by_type("IfcElement"):
|
||||||
pset_data = ifcopenshell.util.element.get_pset(element, "BBIM_Array")
|
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
|
continue
|
||||||
for i in range(len(json.loads(pset_data["Data"]))):
|
for i in range(len(json.loads(pset_data["Data"]))):
|
||||||
tool.Blender.Modifier.Array.set_children_lock_state(element, i, True)
|
tool.Blender.Modifier.Array.set_children_lock_state(element, i, True)
|
||||||
|
|||||||
Reference in New Issue
Block a user