mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 06:32:09 +00:00
bim.calculate_single_quantity - ifcopenshell calculator to appear first
This commit is contained in:
@@ -48,6 +48,8 @@ def get_calculator(self: "BIMQtoProperties", context: bpy.types.Context) -> list
|
|||||||
results: list[tuple[str, str, str]] = []
|
results: list[tuple[str, str, str]] = []
|
||||||
for name, calculator in ifc5d.qto.calculators.items():
|
for name, calculator in ifc5d.qto.calculators.items():
|
||||||
results.append((name, name, calculator.__doc__ or ""))
|
results.append((name, name, calculator.__doc__ or ""))
|
||||||
|
# Make IfcOpenShell appear first.
|
||||||
|
results.sort(key=lambda x: x[0] == "IfcOpenShell", reverse=True)
|
||||||
return results
|
return results
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user