Skip to content

Commit 7093a95

Browse files
committed
Fix #2219 - Screenshot with transparent background shows transparent particles
1 parent 15e5f4c commit 7093a95

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)