From e83eada9a5ffe59c24764a34506d6cfaef7884ef Mon Sep 17 00:00:00 2001 From: sliptonic Date: Wed, 26 Aug 2020 15:22:43 -0500 Subject: [PATCH] Ignore old-style tool controllers --- src/Mod/Path/PathScripts/PathSanity.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/Path/PathScripts/PathSanity.py b/src/Mod/Path/PathScripts/PathSanity.py index fdb27ec105..edbbbc5b44 100644 --- a/src/Mod/Path/PathScripts/PathSanity.py +++ b/src/Mod/Path/PathScripts/PathSanity.py @@ -482,6 +482,8 @@ class CommandPathSanity: try: for TC in obj.ToolController: + if not hasattr(TC.Tool, 'BitBody'): + continue # skip old-style tools tooldata = data.setdefault(str(TC.ToolNumber), {}) bitshape = tooldata.setdefault('BitShape', "") if bitshape not in ["", TC.Tool.BitShape]: