Skip to content

Commit

Permalink
important fix which caused crash with invalid representations in debu…
Browse files Browse the repository at this point in the history
…g mode
  • Loading branch information
scanberg committed Oct 10, 2024
1 parent 4052ab2 commit 8b52c66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8140,7 +8140,7 @@ static void update_representation(ApplicationState* state, Representation* rep)
rep->filt_is_dirty = false;
}

if (rep->filt_is_valid) {
if (use_colors && rep->filt_is_valid) {
filter_colors(colors, mol.atom.count, &rep->atom_mask);
state->representation.atom_visibility_mask_dirty = true;
md_gl_rep_set_color(rep->md_rep, 0, (uint32_t)mol.atom.count, colors, 0);
Expand Down

0 comments on commit 8b52c66

Please sign in to comment.