adding sanity fix

This commit is contained in:
Ian Abreu
2025-07-06 16:26:50 -04:00
parent a370673467
commit 83dd97608f

View File

@@ -56,7 +56,10 @@ class CommandCAMSanity:
}
def IsActive(self):
obj = FreeCADGui.Selection.getSelectionEx()[0].Object
selection = FreeCADGui.Selection.getSelection()
if len(selection) == 0:
return False
obj = selection[0].Object
return isinstance(obj.Proxy, Path.Main.Job.ObjectJob)
def Activated(self):