| 1636 | } |
| 1637 | |
| 1638 | void LinkBaseExtension::onExtendedUnsetupObject() |
| 1639 | { |
| 1640 | if (!getElementListProperty()) { |
| 1641 | return; |
| 1642 | } |
| 1643 | detachElements(); |
| 1644 | if (auto obj = getLinkCopyOnChangeGroupValue()) { |
| 1645 | if (obj->isAttachedToDocument() && !obj->isRemoving()) { |
| 1646 | obj->getDocument()->removeObject(obj->getNameInDocument()); |
| 1647 | } |
| 1648 | } |
| 1649 | } |
| 1650 | |
| 1651 | DocumentObject* LinkBaseExtension::getTrueLinkedObject(bool recurse, |
| 1652 | Base::Matrix4D* mat, |
no test coverage detected