Added another safety check.

This commit is contained in:
ml 2016-10-11 20:56:08 -07:00 committed by Markus Lampert
parent 0ae6a862db
commit be40ab79cd

View File

@ -501,6 +501,7 @@ def getLastToolLoad(obj):
if hasattr(parent, 'Group'): if hasattr(parent, 'Group'):
sibs = parent.Group sibs = parent.Group
for g in sibs: for g in sibs:
if hasattr(g, 'Proxy'):
if isinstance(g.Proxy, PathScripts.PathLoadTool.LoadTool): if isinstance(g.Proxy, PathScripts.PathLoadTool.LoadTool):
lastfound = g lastfound = g
if g == child: if g == child: