App: fix LinkBaseExtension::extensionGetSubObject()

This fix obtain shape from a link to a sub element
This commit is contained in:
Zheng, Lei
2019-08-21 14:40:04 +08:00
committed by wmayer
parent b78f1a5111
commit 9d03d7caa9

View File

@@ -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);