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

Method afterRestore

src/App/PropertyExpressionEngine.cpp:510–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510void PropertyExpressionEngine::afterRestore()
511{
512 DocumentObject* docObj = freecad_cast<DocumentObject*>(getContainer());
513 if (restoredExpressions && docObj) {
514 Base::FlagToggler<bool> flag(restoring);
515 AtomicPropertyChange signaller(*this);
516
517 PropertyExpressionContainer::afterRestore();
518 ObjectIdentifier::DocumentMapper mapper(this->_DocMap);
519
520 for (auto& info : *restoredExpressions) {
521 tryRestoreExpression(docObj, info);
522 }
523 signaller.tryInvoke();
524 }
525 restoredExpressions.reset();
526}
527
528void PropertyExpressionEngine::tryRestoreExpression(DocumentObject* docObj,
529 const RestoredExpression& info)

Callers

nothing calls this directly

Calls 4

getContainerFunction · 0.85
afterRestoreFunction · 0.85
tryInvokeMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected