bim.calculate_single_quantity - ifcopenshell calculator to appear first

This commit is contained in:
Andrej730
2025-03-14 11:11:05 +05:00
parent 8ca344259f
commit 4f6dbbe72b
+2
View File
@@ -48,6 +48,8 @@ def get_calculator(self: "BIMQtoProperties", context: bpy.types.Context) -> list
results: list[tuple[str, str, str]] = []
for name, calculator in ifc5d.qto.calculators.items():
results.append((name, name, calculator.__doc__ or ""))
# Make IfcOpenShell appear first.
results.sort(key=lambda x: x[0] == "IfcOpenShell", reverse=True)
return results