CAM: store tool quantities in user units, not metric

This commit is contained in:
Samuel Abels
2025-06-29 11:52:07 +02:00
parent 11d5707141
commit 33935cf73e
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ import FreeCAD
def to_json(value):
"""Convert a value to JSON format."""
if isinstance(value, FreeCAD.Units.Quantity):
return str(value)
return value.UserString
return value