Skip to content
Snippets Groups Projects
Commit 27b625a4 authored by stefan's avatar stefan
Browse files

Fix entity_renderer (check if selection is valid)

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1796 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 5d177628
Branches
Tags
No related merge requests found
......@@ -171,7 +171,9 @@ void EntityRenderer::SetVisible(const mol::EntityView& view, bool visible)
hidden_view_=hidden_view_.IsValid() ? Union(hidden_view_, view) : view.Copy();
}
sel_= hidden_view_.IsValid() ? mol::Difference(full_sel_,hidden_view_) : sel_;
if(sel_.IsValid()){
sel_= hidden_view_.IsValid() ? mol::Difference(full_sel_,hidden_view_) : sel_;
}
if(full_view_.IsValid()){
effective_view_=hidden_view_.IsValid() ? mol::Difference(full_view_,hidden_view_): full_view_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment