mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 14:12:50 +02:00
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:
parent
a123a2171b
commit
b793378830
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue