mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 00:03:39 +02:00
Fix grip-delete entity history
This commit is contained in:
parent
18ce5ba30f
commit
1e2a3a13da
1 changed files with 14 additions and 12 deletions
|
@ -262,18 +262,20 @@ Selection = function (side) {
|
|||
}
|
||||
|
||||
// Add history entry.
|
||||
History.push(
|
||||
{
|
||||
setProperties: [
|
||||
{ entityID: rootEntityID, properties: { position: startPosition, rotation: startOrientation } }
|
||||
]
|
||||
},
|
||||
{
|
||||
setProperties: [
|
||||
{ entityID: rootEntityID, properties: { position: rootPosition, rotation: rootOrientation } }
|
||||
]
|
||||
}
|
||||
);
|
||||
if (selection.length > 0) {
|
||||
History.push(
|
||||
{
|
||||
setProperties: [
|
||||
{ entityID: rootEntityID, properties: { position: startPosition, rotation: startOrientation } }
|
||||
]
|
||||
},
|
||||
{
|
||||
setProperties: [
|
||||
{ entityID: rootEntityID, properties: { position: rootPosition, rotation: rootOrientation } }
|
||||
]
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
// Kick off physics if necessary.
|
||||
if (selection.length > 0 && selection[0].dynamic) {
|
||||
|
|
Loading…
Reference in a new issue