Assembly : Fixes for sketches in bodies

This commit is contained in:
PaddleStroke
2024-01-26 16:25:35 +01:00
parent 03831b8fe3
commit 32e654cb24
3 changed files with 34 additions and 12 deletions

View File

@@ -1643,16 +1643,16 @@ App::DocumentObject* AssemblyObject::getObjFromNameProp(App::DocumentObject* joi
return containingPart;
}
if (containingPart->getTypeId().isDerivedFrom(App::Link::getClassTypeId())) {
/*if (containingPart->getTypeId().isDerivedFrom(App::Link::getClassTypeId())) {
App::Link* link = dynamic_cast<App::Link*>(containingPart);
containingPart = link->getLinkedObject();
if (!containingPart) {
return nullptr;
}
}
}*/
for (auto obj : containingPart->getOutList()) {
for (auto obj : containingPart->getOutListRecursive()) {
if (objName == obj->getNameInDocument()) {
return obj;
}