mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +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"]}")
|
print(f"RELATING COST QUANTITY NAME: {relating_cost_item["quantity_name"]}")
|
||||||
...
|
...
|
||||||
"""
|
"""
|
||||||
quantities = cls.get_base_qto(product).Quantities
|
|
||||||
model = tool.Ifc.get()
|
model = tool.Ifc.get()
|
||||||
cost_items = model.by_type("IfcCostItem")
|
cost_items = model.by_type("IfcCostItem")
|
||||||
result = []
|
result = []
|
||||||
|
base_qto = cls.get_base_qto(product)
|
||||||
|
quantities = base_qto.Quantities if base_qto else []
|
||||||
|
|
||||||
for cost_item in cost_items:
|
for cost_item in cost_items:
|
||||||
cost_item_quantities = cost_item.CostQuantities if cost_item.CostQuantities is not None else []
|
cost_item_quantities = cost_item.CostQuantities if cost_item.CostQuantities is not None else []
|
||||||
|
|||||||
Reference in New Issue
Block a user