Skip to content

Commit

Permalink
Part: fix Feature::getTopoShape() for link array with LinkTransform
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder authored and WandererFan committed Mar 27, 2020
1 parent 2b52285 commit f501198
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Mod/Part/App/PartFeature.cpp
Expand Up @@ -407,9 +407,10 @@ static TopoShape _getTopoShape(const App::DocumentObject *obj, const char *subna
// not return the linked object when calling getLinkedObject().
// Therefore, it should be handled here.
TopoShape baseShape;
Base::Matrix4D baseMat;
std::string op;
if(link && link->getElementCountValue()) {
linked = link->getTrueLinkedObject(false);
linked = link->getTrueLinkedObject(false,&baseMat);
if(linked && linked!=owner) {
baseShape = Feature::getTopoShape(linked,0,false,0,0,false,false);
// if(!link->getShowElementValue())
Expand All @@ -421,7 +422,7 @@ static TopoShape _getTopoShape(const App::DocumentObject *obj, const char *subna
int visible;
std::string childName;
App::DocumentObject *parent=0;
Base::Matrix4D mat;
Base::Matrix4D mat = baseMat;
App::DocumentObject *subObj=0;
if(sub.find('.')==std::string::npos)
visible = 1;
Expand Down

0 comments on commit f501198

Please sign in to comment.