gui: fix GotoLinked command

This commit is contained in:
Zheng, Lei 2019-04-30 21:23:43 +08:00
parent 7f72f93d4e
commit cb3e5f4259

2
gui.py
View File

@ -734,6 +734,8 @@ class AsmCmdGotoLinked(AsmCmdBase):
FreeCADGui.runCommand('Std_LinkSelectLinked')
return
import Part
from . import assembly
subname = assembly.flattenLastSubname(sels[0].Object,subname)
subname = Part.splitSubname(subname)[0].split('.')
link = obj.LinkedObject
if isinstance(link,tuple):