From 0d181d0dded04621a9a046659fbbf528afb15f86 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Mon, 23 Sep 2019 17:38:17 +0800 Subject: [PATCH] App: allow link properties for all App::Link --- src/App/Link.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/App/Link.cpp b/src/App/Link.cpp index 7ce1dac21e..ba0ced1602 100644 --- a/src/App/Link.cpp +++ b/src/App/Link.cpp @@ -1408,14 +1408,6 @@ Link::Link() { } bool Link::canLinkProperties() const { - auto prop = freecad_dynamic_cast(getLinkedObjectProperty()); - const char *subname; - if(prop && (subname=prop->getSubName()) && *subname) { - auto len = strlen(subname); - // Do not link properties when we are linking to a sub-element (i.e. - // vertex, edge or face) - return subname[len-1]=='.'; - } return true; }