mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
BBIM - Fix cost item products not loading for 1st cost item created
This commit is contained in:
@@ -927,7 +927,7 @@ class LoadCostItemQuantities(bpy.types.Operator):
|
|||||||
self.props.cost_item_products.clear()
|
self.props.cost_item_products.clear()
|
||||||
self.props.cost_item_processes.clear()
|
self.props.cost_item_processes.clear()
|
||||||
self.props.cost_item_resources.clear()
|
self.props.cost_item_resources.clear()
|
||||||
if self.props.active_cost_item_index:
|
if self.props.cost_items:
|
||||||
ifc_definition_id = self.props.cost_items[self.props.active_cost_item_index].ifc_definition_id
|
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 {}:
|
for control_id, quantity_ids in Data.cost_items[ifc_definition_id]["Controls"].items() or {}:
|
||||||
related_object = self.file.by_id(control_id)
|
related_object = self.file.by_id(control_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user