adding sanity fix
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user