From 96a0dbea2defa0eb24f1f8072aa312e740f1498a Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Tue, 8 Aug 2017 15:48:54 +0100 Subject: [PATCH] Don't include subflow meta-port nodes in exported selection Fixes #1362 --- editor/js/ui/clipboard.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/js/ui/clipboard.js b/editor/js/ui/clipboard.js index 72d06e2c6..2bdd20052 100644 --- a/editor/js/ui/clipboard.js +++ b/editor/js/ui/clipboard.js @@ -203,7 +203,8 @@ RED.clipboard = (function() { var nodes = null; if (type === 'export-range-selected') { var selection = RED.view.selection(); - nodes = RED.nodes.createExportableNodeSet(selection.nodes); + // Don't include the subflow meta-port nodes in the exported selection + nodes = RED.nodes.createExportableNodeSet(selection.nodes.filter(function(n) { return n.type !== 'subflow'})); } else if (type === 'export-range-flow') { var activeWorkspace = RED.workspaces.active(); nodes = RED.nodes.filterNodes({z:activeWorkspace});