From a546d8b279a9123f584fca6efdda43e8dd36d217 Mon Sep 17 00:00:00 2001 From: David Back Date: Fri, 6 Jul 2018 15:48:53 -0700 Subject: [PATCH] tabs --- scripts/system/libraries/entitySelectionTool.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/system/libraries/entitySelectionTool.js b/scripts/system/libraries/entitySelectionTool.js index 26000d86c7..f42f18254a 100644 --- a/scripts/system/libraries/entitySelectionTool.js +++ b/scripts/system/libraries/entitySelectionTool.js @@ -180,17 +180,17 @@ SelectionManager = (function() { that.selections = []; that._update(true); }; - - that.addChildrenEntities = function(parentEntityID, entityList) { - var children = Entities.getChildrenIDs(parentEntityID); + + that.addChildrenEntities = function(parentEntityID, entityList) { + var children = Entities.getChildrenIDs(parentEntityID); for (var i = 0; i < children.length; i++) { var childID = children[i]; - if (entityList.indexOf(childID) < 0) { - entityList.push(childID); + if (entityList.indexOf(childID) < 0) { + entityList.push(childID); } - that.addChildrenEntities(childID, entityList); + that.addChildrenEntities(childID, entityList); } - }; + }; that.duplicateSelection = function() { var entitiesToDuplicate = []; @@ -203,7 +203,7 @@ SelectionManager = (function() { if (entitiesToDuplicate.indexOf(originalEntityID) < 0) { entitiesToDuplicate.push(originalEntityID); } - that.addChildrenEntities(originalEntityID, entitiesToDuplicate); + that.addChildrenEntities(originalEntityID, entitiesToDuplicate); }); // duplicate entities from above and store their original to new entity mappings and children needing re-parenting