Hierarchy

This commit is contained in:
Luis Fernando Molina committed 2021-10-11 12:35:22 +02:00
1 parent d8c12c04d9
commit d632491d65
13 files changed
+14 -14

No files matched your search

@@ -169,7 +169,7 @@ function newVisualScriptingFunctionLibraryNodeCloning() {
}
// If the path has not been saved save it now
if (node.payload.referenceParentCombinedNodePath === undefined) {
let attachNodePath = UI.projects.foundations.utilities.hierarchy.getNodeNameTypePath(node.payload.referenceParent)
let attachNodePath = UI.projects.visualScripting.utilities.hierarchy.getNodeNameTypePath(node.payload.referenceParent)
// Save path to reference parent for auto restore
savedPayload.referenceParentCombinedNodePath = attachNodePath
} else {
@@ -261,7 +261,7 @@ function newVisualScriptingFunctionLibraryProtocolNode() {
}
// If the path has not been saved save it now
if (node.payload.referenceParentCombinedNodePath === undefined) {
let attachNodePath = UI.projects.foundations.utilities.hierarchy.getNodeNameTypePath(node.payload.referenceParent)
let attachNodePath = UI.projects.visualScripting.utilities.hierarchy.getNodeNameTypePath(node.payload.referenceParent)
// Save path to reference parent for auto restore
savedPayload.referenceParentCombinedNodePath = attachNodePath
} else {
@@ -22,7 +22,7 @@ function newVisualScriptingFunctionLibraryReferenceAttachDetach() {
function storeAttachNodePath(node, attachToNode) {
if (node === undefined) { return }
if (node.payload === undefined) { return }
let attachNodePath = UI.projects.foundations.utilities.hierarchy.getNodeNameTypePath(attachToNode)
let attachNodePath = UI.projects.visualScripting.utilities.hierarchy.getNodeNameTypePath(attachToNode)
// Remove unused node id, and project tag from stored path
for (let i = 0; i < attachNodePath.length; i++) {
attachNodePath[i].splice(2, 2)