mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
fix the bug fix on commit #88893a8
This commit is contained in:
@@ -927,7 +927,7 @@ class LoadCostItemQuantities(bpy.types.Operator):
|
||||
self.props.cost_item_products.clear()
|
||||
self.props.cost_item_processes.clear()
|
||||
self.props.cost_item_resources.clear()
|
||||
if self.props.cost_items:
|
||||
if self.props.active_cost_item_index < len(self.props.cost_items):
|
||||
ifc_definition_id = self.props.cost_items[self.props.active_cost_item_index].ifc_definition_id
|
||||
for control_id, quantity_ids in Data.cost_items[ifc_definition_id]["Controls"].items() or {}:
|
||||
related_object = self.file.by_id(control_id)
|
||||
|
||||
Reference in New Issue
Block a user