From 203dc31f07155e0cbb4761d3031aaa435ab31599 Mon Sep 17 00:00:00 2001 From: ml Date: Tue, 11 Oct 2016 20:56:08 -0700 Subject: [PATCH] Added another safety check. --- src/Mod/Path/PathScripts/PathUtils.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathUtils.py b/src/Mod/Path/PathScripts/PathUtils.py index 115664a2a6..3384af83ed 100644 --- a/src/Mod/Path/PathScripts/PathUtils.py +++ b/src/Mod/Path/PathScripts/PathUtils.py @@ -501,10 +501,11 @@ def getLastToolLoad(obj): if hasattr(parent, 'Group'): sibs = parent.Group for g in sibs: - if isinstance(g.Proxy, PathScripts.PathLoadTool.LoadTool): - lastfound = g - if g == child: - tc = lastfound + if hasattr(g, 'Proxy'): + if isinstance(g.Proxy, PathScripts.PathLoadTool.LoadTool): + lastfound = g + if g == child: + tc = lastfound if tc is None: try: