Fix grip-delete entity history

This commit is contained in:
David Rowe 2017-09-14 09:31:32 +12:00
parent 18ce5ba30f
commit 1e2a3a13da

View file

@ -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) {