mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:13:41 +00:00
fix error removing array pset after c50d1ea2f
This commit is contained in:
@@ -193,7 +193,7 @@ class RemoveArray(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
|
|
||||||
pset = tool.Ifc.get().by_id(pset["id"])
|
pset = tool.Ifc.get().by_id(pset["id"])
|
||||||
if len(data) == 1:
|
if len(data) == 1:
|
||||||
ifcopenshell.api.run("pset.remove_pset", tool.Ifc.get(), pset=pset)
|
ifcopenshell.api.run("pset.remove_pset", tool.Ifc.get(), product=element, pset=pset)
|
||||||
else:
|
else:
|
||||||
del data[self.item]
|
del data[self.item]
|
||||||
data = tool.Ifc.get().createIfcText(json.dumps(data))
|
data = tool.Ifc.get().createIfcText(json.dumps(data))
|
||||||
|
|||||||
Reference in New Issue
Block a user