App: allow link properties for all App::Link

This commit is contained in:
Zheng, Lei
2019-09-23 17:38:17 +08:00
committed by wmayer
parent 5c3e7d0925
commit 0d181d0dde

View File

@@ -1408,14 +1408,6 @@ Link::Link() {
}
bool Link::canLinkProperties() const {
auto prop = freecad_dynamic_cast<const PropertyXLink>(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;
}