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:
parent
385895112b
commit
e2e6754de1
1 changed files with 5 additions and 3 deletions
|
@ -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,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue