Added another safety check.
This commit is contained in:
parent
0ae6a862db
commit
be40ab79cd
|
@ -501,10 +501,11 @@ 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 isinstance(g.Proxy, PathScripts.PathLoadTool.LoadTool):
|
if hasattr(g, 'Proxy'):
|
||||||
lastfound = g
|
if isinstance(g.Proxy, PathScripts.PathLoadTool.LoadTool):
|
||||||
if g == child:
|
lastfound = g
|
||||||
tc = lastfound
|
if g == child:
|
||||||
|
tc = lastfound
|
||||||
|
|
||||||
if tc is None:
|
if tc is None:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user