Skip to content

Commit b6cd594

Browse files
authored
Merge pull request #2221 from SCIInstitute/2219-transparent-particles
Fix #2219 - Screenshot with transparent background shows transparent particles
2 parents 6b25879 + 7093a95 commit b6cd594

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Studio/Visualization/Visualizer.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,15 +305,16 @@ void Visualizer::update_lut() {
305305
}
306306
}
307307
} else {
308+
glyph_lut_->ForceBuild();
308309
if (preferences_.get_particle_colors() == ParticleColors::ParticleColorsType::Distinct) {
309310
auto lut = ParticleColors::construct_distinct();
310311

312+
glyph_lut_->ForceBuild();
313+
311314
// normal particle coloring mode
312315
for (int i = 0; i < num_points; i++) {
313316
glyph_lut_->SetTableValue(i, lut->GetTableValue(i % lut->GetNumberOfTableValues()));
314317
}
315-
} else {
316-
glyph_lut_->ForceBuild();
317318
}
318319
}
319320

0 commit comments

Comments
 (0)