MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / onExtendedUnsetupObject

Method onExtendedUnsetupObject

src/App/Link.cpp:1638–1649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1636}
1637
1638void 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
1651DocumentObject* LinkBaseExtension::getTrueLinkedObject(bool recurse,
1652 Base::Matrix4D* mat,

Callers 1

unsetupObjectMethod · 0.45

Calls 4

isAttachedToDocumentMethod · 0.45
removeObjectMethod · 0.45
getDocumentMethod · 0.45
getNameInDocumentMethod · 0.45

Tested by

no test coverage detected