From 495234f75374685aa95d9d699eebbca9214351cd Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Wed, 21 Aug 2019 14:40:04 +0800 Subject: [PATCH] App: fix LinkBaseExtension::extensionGetSubObject() This fix obtain shape from a link to a sub element --- src/App/Link.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App/Link.cpp b/src/App/Link.cpp index da7907744a..da71db9768 100644 --- a/src/App/Link.cpp +++ b/src/App/Link.cpp @@ -523,7 +523,7 @@ bool LinkBaseExtension::extensionGetSubObject(DocumentObject *&ret, const char * auto obj = getContainer(); if(!subname || !subname[0]) { ret = const_cast(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);