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

Method onDocumentRestored

src/App/FeaturePython.cpp:220–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220void FeaturePythonImp::onDocumentRestored()
221{
222 _FC_PY_CALL_CHECK(onDocumentRestored, return);
223
224 // Run the execute method of the proxy object.
225 Base::PyGILStateLocker lock;
226 try {
227 if (has__object__) {
228 Base::pyCall(py_onDocumentRestored.ptr());
229 }
230 else {
231 Py::Tuple args(1);
232 args.setItem(0, Py::Object(object->getPyObject(), true));
233 Base::pyCall(py_onDocumentRestored.ptr(), args.ptr());
234 }
235 }
236 catch (Py::Exception&) {
237 Base::PyException e; // extract the Python error text
238 e.reportException();
239 }
240}
241
242void FeaturePythonImp::unsetupObject()
243{

Callers

nothing calls this directly

Calls 5

pyCallFunction · 0.85
ObjectClass · 0.70
ptrMethod · 0.45
getPyObjectMethod · 0.45
reportExceptionMethod · 0.45

Tested by

no test coverage detected