Merge pull request #12909 from FlachyJoe/fix-variablelink

[Link] Fix SIGSEGV with LinkCopyOnChange=Tracking
This commit is contained in:
sliptonic
2024-03-18 11:57:00 -06:00
committed by GitHub

View File

@@ -319,6 +319,12 @@ App::DocumentObjectExecReturn *LinkBaseExtension::extensionExecute() {
syncCopyOnChange();
}
// the previous linked object could be deleted by syncCopyOnChange - #12281
linked = getTrueLinkedObject(true);
if(!linked) {
return new App::DocumentObjectExecReturn("Error in processing variable link");
}
PropertyPythonObject *proxy = nullptr;
if(getLinkExecuteProperty()
&& !boost::iequals(getLinkExecuteValue(), "none")