mirror of https://github.com/vitalif/openscad
bugfix: Don't try to render empty polyhedrons
parent
f1c17e791f
commit
2f4582eeba
|
@ -1275,6 +1275,7 @@ void MainWindow::actionRenderCGAL()
|
|||
int s = t.elapsed() / 1000;
|
||||
PRINTF("Total rendering time: %d hours, %d minutes, %d seconds", s / (60*60), (s / 60) % 60, s % 60);
|
||||
|
||||
if (!this->root_N->empty()) {
|
||||
this->cgalRenderer = new CGALRenderer(*this->root_N);
|
||||
// Go to CGAL view mode
|
||||
if (viewActionCGALGrid->isChecked()) {
|
||||
|
@ -1286,6 +1287,10 @@ void MainWindow::actionRenderCGAL()
|
|||
|
||||
PRINT("Rendering finished.");
|
||||
}
|
||||
else {
|
||||
PRINT("WARNING: No top level geometry to render");
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef USE_PROGRESSWIDGET
|
||||
this->statusBar()->removeWidget(pd);
|
||||
|
|
Loading…
Reference in New Issue