Small bugfix

This commit is contained in:
Aria Minaei 2021-09-02 14:32:33 +02:00
parent 6ccfeea068
commit 7bf22a5f9b

View file

@ -147,8 +147,8 @@ export function useEditingToolsForPrimitiveProp<
].sequence.tracksByObject[obj.address.objectKey].trackData[
sequenceTrcackId
],
)!
if (track.keyframes.length === 0) return {}
)
if (!track || track.keyframes.length === 0) return {}
const pos = val(obj.sheet.getSequence().positionDerivation)
@ -176,7 +176,7 @@ export function useEditingToolsForPrimitiveProp<
}
}
},
[],
[sequenceTrcackId],
)
let shade: Shade