From c0bf7ec4f2092723ed070501d46d6e414e2aa8d9 Mon Sep 17 00:00:00 2001 From: Samuel Abels Date: Mon, 26 May 2025 23:42:44 +0200 Subject: [PATCH] CAM: Fix: all toolbits in camotics exported as Cylindrical --- src/Mod/CAM/Path/Tool/library/serializers/camotics.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/CAM/Path/Tool/library/serializers/camotics.py b/src/Mod/CAM/Path/Tool/library/serializers/camotics.py index 5d8a317769..8f1f107f9a 100644 --- a/src/Mod/CAM/Path/Tool/library/serializers/camotics.py +++ b/src/Mod/CAM/Path/Tool/library/serializers/camotics.py @@ -33,6 +33,7 @@ SHAPEMAP = { "ballend": "Ballnose", "endmill": "Cylindrical", "v-bit": "Conical", + "vbit": "Conical", "chamfer": "Snubnose", } SHAPEMAP_REVERSE = dict((v, k) for k, v in SHAPEMAP.items()) @@ -107,7 +108,7 @@ class CamoticsLibrarySerializer(AssetSerializer): toolitem["length"] = length_serializable - toolitem["shape"] = SHAPEMAP.get(tool._tool_bit_shape.name, "Cylindrical") + toolitem["shape"] = SHAPEMAP.get(tool._tool_bit_shape.name.lower(), "Cylindrical") toollist[str(tool_no)] = toolitem return json.dumps(toollist, indent=2).encode("utf-8")