From 7908b3b2668e9bd209ff7c4b3017dbfff546580c Mon Sep 17 00:00:00 2001 From: Ian Abreu Date: Sun, 6 Jul 2025 16:30:53 -0400 Subject: [PATCH] fixing typos --- src/Mod/CAM/Path/Main/Gui/Inspect.py | 2 +- src/Mod/CAM/Path/Main/Gui/SanityCmd.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/CAM/Path/Main/Gui/Inspect.py b/src/Mod/CAM/Path/Main/Gui/Inspect.py index 569f3ca387..097a81e221 100644 --- a/src/Mod/CAM/Path/Main/Gui/Inspect.py +++ b/src/Mod/CAM/Path/Main/Gui/Inspect.py @@ -263,7 +263,7 @@ class CommandPathInspect: selection = FreeCADGui.Selection.getSelection() if len(selection) == 0: return False - obj = selection[0].Object + obj = selection[0] return hasattr(obj, "Path") and len(obj.Path.Commands) > 0 def Activated(self): diff --git a/src/Mod/CAM/Path/Main/Gui/SanityCmd.py b/src/Mod/CAM/Path/Main/Gui/SanityCmd.py index 86d3d04e8f..32b8f298fe 100644 --- a/src/Mod/CAM/Path/Main/Gui/SanityCmd.py +++ b/src/Mod/CAM/Path/Main/Gui/SanityCmd.py @@ -56,7 +56,7 @@ class CommandCAMSanity: } def IsActive(self): - selection = FreeCADGui.Selection.getSelection() + selection = FreeCADGui.Selection.getSelectionEx() if len(selection) == 0: return False obj = selection[0].Object