-
Notifications
You must be signed in to change notification settings - Fork 16
Fix crashes when changing Mouse operation #269
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
base: master
Are you sure you want to change the base?
Fix crashes when changing Mouse operation #269
Conversation
| else if (auto* sutureOperation = dynamic_cast<AddSutureOperation*>(operation)) | ||
| { | ||
| static float stiffness = 10.0f; | ||
| float stiffness = 10.0f; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure you should remove the static...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that in case the operation changes while the static variable retains its old value, it may cause state persistence issues
Fixes #268