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.
This commit is contained in:
Alezia Kurdis 2020-11-04 23:12:04 -05:00 committed by GitHub
parent a123a2171b
commit b793378830
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();