From 24db53f0e38de51727a31270d2cdb489e9b2ebe8 Mon Sep 17 00:00:00 2001 From: luz paz Date: Sun, 6 Feb 2022 19:24:43 -0500 Subject: [PATCH 1/3] Path: Fix class 'KeyError' in PathSelection.py Fix suggested by GeneFC on the forum --- src/Mod/Path/PathScripts/PathSelection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PathSelection.py b/src/Mod/Path/PathScripts/PathSelection.py index 21da7974e2..ef561f6361 100644 --- a/src/Mod/Path/PathScripts/PathSelection.py +++ b/src/Mod/Path/PathScripts/PathSelection.py @@ -390,7 +390,7 @@ def select(op): opsel["Helix"] = drillselect opsel["MillFace"] = pocketselect opsel["Pocket"] = pocketselect - opsel["Pocket3D"] = pocketselect + opsel["Pocket 3D"] = pocketselect opsel["Pocket Shape"] = pocketselect opsel["Profile Edges"] = eselect # (depreciated) opsel["Profile Faces"] = fselect # (depreciated) From ce70ee11f99c95b91049ea532ea888df01d48bcb Mon Sep 17 00:00:00 2001 From: sliptonic Date: Tue, 22 Feb 2022 14:56:00 -0600 Subject: [PATCH 2/3] Update PathSelection.py The Opname changed as part of the translation cleanup. Adding both names to the dictionary will support both existing operations and newly created ones. --- src/Mod/Path/PathScripts/PathSelection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Mod/Path/PathScripts/PathSelection.py b/src/Mod/Path/PathScripts/PathSelection.py index ef561f6361..234f911cdd 100644 --- a/src/Mod/Path/PathScripts/PathSelection.py +++ b/src/Mod/Path/PathScripts/PathSelection.py @@ -391,6 +391,7 @@ def select(op): opsel["MillFace"] = pocketselect opsel["Pocket"] = pocketselect opsel["Pocket 3D"] = pocketselect + opsel["Pocket3D"] = pocketselect opsel["Pocket Shape"] = pocketselect opsel["Profile Edges"] = eselect # (depreciated) opsel["Profile Faces"] = fselect # (depreciated) From 958a1c67d5835e779ea6cdee8255aa5eb43625fd Mon Sep 17 00:00:00 2001 From: luz paz Date: Tue, 22 Feb 2022 19:07:54 -0500 Subject: [PATCH 3/3] [Path] mark deprecated selections ...and fix typos --- src/Mod/Path/PathScripts/PathSelection.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathSelection.py b/src/Mod/Path/PathScripts/PathSelection.py index 234f911cdd..18a1c710ea 100644 --- a/src/Mod/Path/PathScripts/PathSelection.py +++ b/src/Mod/Path/PathScripts/PathSelection.py @@ -383,7 +383,7 @@ def turnselect(): def select(op): opsel = {} - opsel["Contour"] = contourselect # (depreciated) + opsel["Contour"] = contourselect # deprecated opsel["Deburr"] = chamferselect opsel["Drilling"] = drillselect opsel["Engrave"] = engraveselect @@ -391,10 +391,10 @@ def select(op): opsel["MillFace"] = pocketselect opsel["Pocket"] = pocketselect opsel["Pocket 3D"] = pocketselect - opsel["Pocket3D"] = pocketselect + opsel["Pocket3D"] = pocketselect # deprecated opsel["Pocket Shape"] = pocketselect - opsel["Profile Edges"] = eselect # (depreciated) - opsel["Profile Faces"] = fselect # (depreciated) + opsel["Profile Edges"] = eselect # deprecated + opsel["Profile Faces"] = fselect # deprecated opsel["Profile"] = profileselect opsel["Slot"] = slotselect opsel["Surface"] = surfaceselect