| 508 | } |
| 509 | |
| 510 | void 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 | |
| 528 | void PropertyExpressionEngine::tryRestoreExpression(DocumentObject* docObj, |
| 529 | const RestoredExpression& info) |
nothing calls this directly
no test coverage detected