From 5cd958dee57d5d9edfb38fed2d494dfd963200a4 Mon Sep 17 00:00:00 2001 From: sliptonic Date: Mon, 1 Apr 2024 17:03:57 -0500 Subject: [PATCH] fixes #13206 --- src/Mod/CAM/Init.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/Mod/CAM/Init.py b/src/Mod/CAM/Init.py index 28d09d051d..b6ed99fad8 100644 --- a/src/Mod/CAM/Init.py +++ b/src/Mod/CAM/Init.py @@ -21,6 +21,23 @@ # * * # *************************************************************************** +# This code handles parameter groups following the CAM workbench renaming +# (PATH -> CAM). This code can be removed after the 1.0 release. + + +ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Path") +if ParGrp.HasGroup("CAM"): + pass +elif ParGrp.HasGroup("Path"): + ParGrp.RenameGroup("Path", "CAM") + +ParGrp = App.ParamGet("User parameter:BaseApp/Preferences/Mod/Path") +parent = ParGrp.Parent() +if parent.HasGroup("CAM"): + pass +elif parent.HasGroup("Path"): + result = parent.RenameGroup("Path", "CAM") + # Get the Parameter Group of this module ParGrp = App.ParamGet("System parameter:Modules").GetGroup("Path")