+++ to secure your transactions use the Bitcoin Mixer Service +++

 

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Crash on Setting Negative Frame #1574

Merged
1 commit merged into from
Nov 16, 2017

Conversation

shun-iwasawa
Copy link
Member

In most cases, the current frame is positive. However, in some rare cases it can be negative such as users manually type the frame number in the console or move the current frame marker in the Function Curves panel.
When the preview mode is activated Previewer tries to obtain the frame status from std::vector<UCHAR> Previewer::Imp::m_pbStatus[frame] and for now if the current frame is negative the returned status becomes undefined and may causes crash.

I would like to keep availability of the negative frame itself because there may be a case that the animation key should starts from the negative frame in order to get ”midstream” movement at the first frame.

@shun-iwasawa
Copy link
Member Author

Jenkins

@ghost
Copy link

ghost commented Nov 16, 2017

LGTM. Thanks @shun-iwasawa

@ghost ghost merged commit 55072c5 into opentoonz:master Nov 16, 2017
This pull request was closed.
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.

None yet

1 participant