App: allow link properties for all App::Link
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user