From 16324ace16ee52a66b9f6101f8be6856783577d1 Mon Sep 17 00:00:00 2001 From: Alezia Kurdis <60075796+AleziaKurdis@users.noreply.github.com> Date: Wed, 30 Sep 2020 00:42:15 -0400 Subject: [PATCH] Add parent and unparent buttons Add parent and unparent buttons --- scripts/system/create/entityList/entityList.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/system/create/entityList/entityList.js b/scripts/system/create/entityList/entityList.js index 3efa95dc07..b611d006c5 100644 --- a/scripts/system/create/entityList/entityList.js +++ b/scripts/system/create/entityList/entityList.js @@ -15,6 +15,7 @@ var PROFILING_ENABLED = false; var profileIndent = ''; + const PROFILE_NOOP = function(_name, fn, args) { fn.apply(this, args); }; @@ -316,6 +317,12 @@ EntityListTool = function(shouldUseEditTabletApp) { undoHistory.undo(); } else if (data.type === 'redo') { undoHistory.redo(); + } else if (data.type === 'parent') { + parentSelectedEntities(); + } else if (data.type === 'unparent') { + unparentSelectedEntities(); + } else if (data.type === 'hmdMultiSelectMode') { + hmdMultiSelectMode = data.value; } };