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
|
stateEditors.coreByProject.historic.sheetsById.sequence
|
||||||
.transformKeyframes
|
.transformKeyframes
|
||||||
|
|
||||||
for (const objKey of Object.keys(selection.byObjectKey)) {
|
for (const objectKey of Object.keys(selection.byObjectKey)) {
|
||||||
const {byTrackId} = selection.byObjectKey[objKey]!
|
const {byTrackId} = selection.byObjectKey[objectKey]!
|
||||||
for (const trackId of Object.keys(byTrackId)) {
|
for (const trackId of Object.keys(byTrackId)) {
|
||||||
const {byKeyframeId} = byTrackId[trackId]!
|
const {byKeyframeId} = byTrackId[trackId]!
|
||||||
transformKeyframes({
|
transformKeyframes({
|
||||||
...origin,
|
|
||||||
trackId,
|
trackId,
|
||||||
keyframeIds: Object.keys(byKeyframeId),
|
keyframeIds: Object.keys(byKeyframeId),
|
||||||
translate: delta,
|
translate: delta,
|
||||||
scale: 1,
|
scale: 1,
|
||||||
origin: 0,
|
origin: 0,
|
||||||
snappingFunction: sheet.getSequence().closestGridPosition,
|
snappingFunction: sheet.getSequence().closestGridPosition,
|
||||||
|
objectKey,
|
||||||
|
projectId: origin.projectId,
|
||||||
|
sheetId: origin.sheetId,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue