More work on Auto Reference
This commit is contained in:
1 parent
d9ec0c8c49
commit
9c1d79ec7d
3 files changed
+55
-9
No files matched your search
@@ -263,21 +263,24 @@ function newFoundationsFunctionLibraryProtocolNode() {
|
||||
if (node.payload.referenceParentCombinedNodePath === undefined) {
|
||||
let attachNodePath = UI.projects.foundations.utilities.hierarchy.getNodeNameTypePath(node.payload.referenceParent)
|
||||
// Save path to reference parent for auto restore
|
||||
savedPayload.referenceParentCombinedNodePath = { path: attachNodePath }
|
||||
// savedPayload.referenceParentCombinedNodePath = { path: attachNodePath }
|
||||
//console.log("this is the saved payload new save", savedPayload)
|
||||
} else {
|
||||
// Save path to reference parent for auto restore
|
||||
savedPayload.referenceParentCombinedNodePath = { path: node.payload.referenceParentCombinedNodePath }
|
||||
savedPayload.referenceParentCombinedNodePath = node.payload.referenceParentCombinedNodePath
|
||||
console.log("this is the saved payload old save", savedPayload)
|
||||
}
|
||||
} else {
|
||||
/* The referenceParent property can be inherited from the previous saved payload. */
|
||||
if (node.savedPayload !== undefined) {
|
||||
savedPayload.referenceParent = node.savedPayload.referenceParent
|
||||
// Save path to reference parent for auto restore
|
||||
savedPayload.referenceParentCombinedNodePath = node.payload.referenceParentCombinedNodePath
|
||||
savedPayload.referenceParentCombinedNodePath = node.savedPayload.referenceParentCombinedNodePath
|
||||
//console.log("this is the saved payload inherited", savedPayload)
|
||||
}
|
||||
}
|
||||
}
|
||||
console.log("this is the saved payload", savedPayload)
|
||||
|
||||
return savedPayload
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user