Fix errors in goToFrame

This commit is contained in:
Skyler Lehmkuhl 2025-01-06 16:01:25 -05:00
parent 184578c361
commit b1be503de9
1 changed files with 1 additions and 0 deletions

View File

@ -177,6 +177,7 @@ let tools = {
get: () => { get: () => {
if (context.selection.length != 1) return undefined; if (context.selection.length != 1) return undefined;
const selectedObject = context.selection[0]; const selectedObject = context.selection[0];
if (! (selectedObject.idx in context.activeObject.currentFrame.keys)) return undefined;
return context.activeObject.currentFrame.keys[selectedObject.idx] return context.activeObject.currentFrame.keys[selectedObject.idx]
.goToFrame; .goToFrame;
}, },