Operations and ToolControllers have labels set automatically.

This will hopefully make things a little clearer
A couple more Sanity checks.
Don't error if no TC in project.
This commit is contained in:
brad
2016-05-23 13:04:58 -03:00
committed by Yorik van Havre
parent 7436a5e397
commit 91978ba1a4
13 changed files with 246 additions and 70 deletions
+7 -4
View File
@@ -404,10 +404,13 @@ def getLastToolLoad(obj):
if tc is None:
for g in FreeCAD.ActiveDocument.Objects: # top level object
if isinstance(g.Proxy, PathScripts.PathLoadTool.LoadTool):
lastfound = g
if g == obj:
tc = lastfound
try:
if isinstance(g.Proxy, PathScripts.PathLoadTool.LoadTool):
lastfound = g
if g == obj:
tc = lastfound
except:
continue
return tc