From bf1f9858aa5c792e1b9082acdff97f059375d624 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 13 Mar 2020 17:21:39 +0100 Subject: [PATCH] Bug Fixed --- DesignSpace/Workspace/FunctionLibraries/SuperScripts.js | 2 +- Panels/LayersPanel.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/DesignSpace/Workspace/FunctionLibraries/SuperScripts.js b/DesignSpace/Workspace/FunctionLibraries/SuperScripts.js index ed5c886e3..3965fe328 100644 --- a/DesignSpace/Workspace/FunctionLibraries/SuperScripts.js +++ b/DesignSpace/Workspace/FunctionLibraries/SuperScripts.js @@ -9,6 +9,7 @@ function newSuperScriptsFunctions () { try { let clone = functionLibraryNodeCloning.getNodeClone let executionResult = true + let superAction = node function setup (templateClone, target, exchange, exchangeNodeType, arrayPropertyName) { spawnPosition.x = target.payload.position.x @@ -64,7 +65,6 @@ function newSuperScriptsFunctions () { executionResult = false } - let superAction = node let masterScript = node.payload.referenceParent eval(masterScript.javascriptCode.code) diff --git a/Panels/LayersPanel.js b/Panels/LayersPanel.js index f9b5ad4a8..3498f8765 100644 --- a/Panels/LayersPanel.js +++ b/Panels/LayersPanel.js @@ -391,6 +391,11 @@ function newLayersPanel () { } function drawHeader () { + if (thisObject.payload === undefined) { return } + if (thisObject.payload.node === undefined) { return } + if (thisObject.payload.node.payload.parentNode === undefined) { return } + if (thisObject.payload.node.payload.parentNode.payload.parentNode === undefined) { return } + let label1 = thisObject.payload.node.payload.parentNode.payload.parentNode.name.substring(0, 18) let label2 = thisObject.payload.node.payload.parentNode.name.substring(0, 18) let label3 = ''