mirror of
https://github.com/overte-org/overte.git
synced 2025-08-14 16:59:40 +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);
|
var newPosition = Vec3.sum(relativePosition, targetPosition);
|
||||||
Entities.editEntity(id, { "position": newPosition });
|
Entities.editEntity(id, { "position": newPosition });
|
||||||
}
|
}
|
||||||
|
pushCommandForSelections();
|
||||||
that._update(false, this);
|
that._update(false, this);
|
||||||
} else {
|
} else {
|
||||||
audioFeedback.rejection();
|
audioFeedback.rejection();
|
||||||
|
|
Loading…
Reference in a new issue