Skip to content

Conversation

@cedrik-fuoco-adsk
Copy link
Contributor

SG-41627 - Timeline disappears when current frame is after the in/out range

Linked issues

n/a

Summarize your change.

Fixed an array bounds error in motion_scope.mu sourceFrameMapping method that cause the Timeline and Timeline magnifier to disappear.

Describe the reason for the change.

When sampFrame exceeded the _frameMap array size, the code incorrectly set sampFrame to the value stored at _frameMap[size-1] instead of clamping it to the index size-1. This caused subsequent array access to be out of bounds.

Describe what you have tested and on which operating system.

MacOS

Add a list of changes, and note any that might need special attention during the review.

If possible, provide screenshots.

Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants