From ab7a9b865f2ed9d06244c962db0248a515006dd7 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Sat, 17 Nov 2018 09:56:13 +0800 Subject: [PATCH] gui: fix GoToLinked command --- gui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui.py b/gui.py index 6e8016c..fa2dadb 100644 --- a/gui.py +++ b/gui.py @@ -673,6 +673,9 @@ class AsmCmdGotoLinked(AsmCmdBase): sels = FreeCADGui.Selection.getSelectionEx('',0,True) if not sels: return + if not sels[0].SubElementNames: + FreeCADGui.runCommand('Std_LinkSelectLinked') + return subname = sels[0].SubElementNames[0] obj = sels[0].Object.getSubObject(subname,retType=1) if not isTypeOf(obj,AsmElementLink) and not isTypeOf(obj,AsmElement):