Update Polyhedron/demo/Polyhedron/MainWindow.cpp

Co-Authored-By: Laurent Rineau <Laurent.Rineau@cgal.org>
This commit is contained in:
Maxime GIMENO 2020-01-08 10:32:31 +01:00 committed by GitHub
parent fc7ef12c04
commit 81cb46a8f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -1809,7 +1809,10 @@ void MainWindow::readSettings()
scene->enableVisibilityRecentering(settings.value("offset_update", false).toBool());
viewer->textRenderer()->setMax(settings.value("max_text_items", 10000).toInt());
int val = settings.value("transparency_pass_number", 4).toInt();
if (val < 4 ) val = 4;
if (val < 4 ) {
val = 4;
settings.setValue("transparency_pass_number", 4);
}
viewer->setTotalPass(val);
CGAL::Three::Three::s_defaultSMRM = CGAL::Three::Three::modeFromName(
settings.value("default_sm_rm", "flat+edges").toString());