mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
fix qto ui bug where objects with no assigned base qto doesn't allow to show the qto panel
This commit is contained in:
@@ -157,10 +157,11 @@ class Qto(blenderbim.core.tool.Qto):
|
||||
print(f"RELATING COST QUANTITY NAME: {relating_cost_item["quantity_name"]}")
|
||||
...
|
||||
"""
|
||||
quantities = cls.get_base_qto(product).Quantities
|
||||
model = tool.Ifc.get()
|
||||
cost_items = model.by_type("IfcCostItem")
|
||||
result = []
|
||||
base_qto = cls.get_base_qto(product)
|
||||
quantities = base_qto.Quantities if base_qto else []
|
||||
|
||||
for cost_item in cost_items:
|
||||
cost_item_quantities = cost_item.CostQuantities if cost_item.CostQuantities is not None else []
|
||||
|
||||
Reference in New Issue
Block a user