From e2e6754de1545f8cb596de1fef7a403000691c94 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Fri, 17 Sep 2021 16:42:22 +0200 Subject: [PATCH] Fixed a bug in dragging selections ... where dragging props of multiple objects would only drag the props of one object --- .../DopeSheet/Right/DopeSheetSelectionView.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/DopeSheetSelectionView.tsx b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/DopeSheetSelectionView.tsx index 3b24f93..a19b3e3 100644 --- a/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/DopeSheetSelectionView.tsx +++ b/theatre/studio/src/panels/SequenceEditorPanel/DopeSheet/Right/DopeSheetSelectionView.tsx @@ -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, }) } }