Fixed a bug in dragging selections ...

where dragging props of multiple objects would only drag the props of one object
This commit is contained in:
Aria Minaei 2021-09-17 16:42:22 +02:00
parent 385895112b
commit e2e6754de1

View file

@ -216,18 +216,20 @@ namespace utils {
stateEditors.coreByProject.historic.sheetsById.sequence
.transformKeyframes
for (const objKey of Object.keys(selection.byObjectKey)) {
const {byTrackId} = selection.byObjectKey[objKey]!
for (const objectKey of Object.keys(selection.byObjectKey)) {
const {byTrackId} = selection.byObjectKey[objectKey]!
for (const trackId of Object.keys(byTrackId)) {
const {byKeyframeId} = byTrackId[trackId]!
transformKeyframes({
...origin,
trackId,
keyframeIds: Object.keys(byKeyframeId),
translate: delta,
scale: 1,
origin: 0,
snappingFunction: sheet.getSequence().closestGridPosition,
objectKey,
projectId: origin.projectId,
sheetId: origin.sheetId,
})
}
}