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 when not deleting the last model #573

Merged
merged 1 commit into from
Sep 21, 2018

Conversation

tribal-tec
Copy link
Contributor

No description provided.

@tribal-tec tribal-tec requested a review from hernando September 21, 2018 15:53
@@ -156,7 +156,7 @@ void Scene::removeModel(const size_t id)

(*i)->callOnRemoved();

_modelDescriptors.erase(i, _modelDescriptors.end());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had made the same change in my code because I found the usage of remove_if unnecessary and confusing. I didn't notice that it was even wrong.

@hernando hernando merged commit ceb1357 into BlueBrain:master Sep 21, 2018
@tribal-tec tribal-tec added the bug label Sep 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants