Move isLink and isLinkGroup from AssemblyObject to DocumentObject

This commit is contained in:
Bas Ruigrok
2024-09-08 11:56:14 +02:00
parent 8db7191084
commit cb98abcc42
5 changed files with 34 additions and 40 deletions

View File

@@ -308,7 +308,7 @@ Base::Placement GeoFeature::getGlobalPlacement(App::DocumentObject* targetObj,
if (obj == targetObj) {
return plc;
}
if (obj->isDerivedFrom<App::Link>()) {
if (obj->isLink()) {
// Update doc in case its an external link.
doc = obj->getLinkedObject()->getDocument();
}