summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainwin.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index 170bb05..e1ab8f0 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -862,6 +862,7 @@ void MainWindow::compileCSG(bool procevents)
PRINTF("WARNING: OpenCSG rendering has been disabled.");
}
else {
+ PRINTF("Normalized CSG tree has %d elements", root_chain->polysets.size());
this->opencsgRenderer = new OpenCSGRenderer(this->root_chain,
this->highlights_chain,
this->background_chain,
@@ -896,7 +897,9 @@ void MainWindow::actionOpen()
{
QString new_filename = QFileDialog::getOpenFileName(this, "Open File", "", "OpenSCAD Designs (*.scad)");
#ifdef ENABLE_MDI
- new MainWindow(new_filename);
+ if (!new_filename.isEmpty()) {
+ new MainWindow(new_filename);
+ }
#else
if (!new_filename.isEmpty()) {
if (!maybeSave())
contact: Jan Huwald // Impressum