Skip to content

Commit

Permalink
App: fix LinkBaseExtension::extensionGetSubObject()
Browse files Browse the repository at this point in the history
This fix obtain shape from a link to a sub element
  • Loading branch information
realthunder authored and wwmayer committed Aug 30, 2019
1 parent b78f1a5 commit 9d03d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App/Link.cpp
Expand Up @@ -523,7 +523,7 @@ bool LinkBaseExtension::extensionGetSubObject(DocumentObject *&ret, const char *
auto obj = getContainer();
if(!subname || !subname[0]) {
ret = const_cast<DocumentObject*>(obj);
if(!_getElementListProperty() && !_getElementCountValue() && pyObj) {
if(pyObj && !_getElementCountValue() && _getElementListValue().empty()) {
Base::Matrix4D matNext;
if(mat) matNext = *mat;
auto linked = getTrueLinkedObject(false,mat?&matNext:0,depth);
Expand Down

0 comments on commit 9d03d7c

Please sign in to comment.