mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 03:03:35 +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.
|
// Add history entry.
|
||||||
History.push(
|
if (selection.length > 0) {
|
||||||
{
|
History.push(
|
||||||
setProperties: [
|
{
|
||||||
{ entityID: rootEntityID, properties: { position: startPosition, rotation: startOrientation } }
|
setProperties: [
|
||||||
]
|
{ entityID: rootEntityID, properties: { position: startPosition, rotation: startOrientation } }
|
||||||
},
|
]
|
||||||
{
|
},
|
||||||
setProperties: [
|
{
|
||||||
{ entityID: rootEntityID, properties: { position: rootPosition, rotation: rootOrientation } }
|
setProperties: [
|
||||||
]
|
{ entityID: rootEntityID, properties: { position: rootPosition, rotation: rootOrientation } }
|
||||||
}
|
]
|
||||||
);
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// Kick off physics if necessary.
|
// Kick off physics if necessary.
|
||||||
if (selection.length > 0 && selection[0].dynamic) {
|
if (selection.length > 0 && selection[0].dynamic) {
|
||||||
|
|
Loading…
Reference in a new issue