From b7933788301995cc58579988e5939f73193fc618 Mon Sep 17 00:00:00 2001 From: Alezia Kurdis <60075796+AleziaKurdis@users.noreply.github.com> Date: Wed, 4 Nov 2020 23:12:04 -0500 Subject: [PATCH] Undo-redo for "Move Selected Entities to Avatar" This adds the undo/redo to the action "Move Selected Entities to Avatar". The action is now recorded in the undo history. --- scripts/system/create/entitySelectionTool/entitySelectionTool.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/system/create/entitySelectionTool/entitySelectionTool.js b/scripts/system/create/entitySelectionTool/entitySelectionTool.js index ffa828affe..97e36d818e 100644 --- a/scripts/system/create/entitySelectionTool/entitySelectionTool.js +++ b/scripts/system/create/entitySelectionTool/entitySelectionTool.js @@ -668,6 +668,7 @@ SelectionManager = (function() { var newPosition = Vec3.sum(relativePosition, targetPosition); Entities.editEntity(id, { "position": newPosition }); } + pushCommandForSelections(); that._update(false, this); } else { audioFeedback.rejection();