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 0e115be0ec
commit 495234f753

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