Skip to content

Commit

Permalink
Merge branch 'master' of github.com:openscad/openscad
Browse files Browse the repository at this point in the history
  • Loading branch information
kintel committed Jan 25, 2016
2 parents fd5833b + 1c01100 commit 1799fe5
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/mainwin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1191,24 +1191,30 @@ void MainWindow::compileCSG(bool procevents)
PRINTB("Compiling highlights (%d CSG Trees)...", highlight_terms.size());
if (procevents) QApplication::processEvents();

highlights_products.reset(new CSGProducts());
this->highlights_products.reset(new CSGProducts());
for (unsigned int i = 0; i < highlight_terms.size(); i++) {
shared_ptr<CSGNode> nterm = normalizer.normalize(highlight_terms[i]);
highlights_products->import(nterm);
this->highlights_products->import(nterm);
}
}
else {
this->highlights_products.reset();
}

const std::vector<shared_ptr<CSGNode> > &background_terms = csgrenderer.getBackgroundNodes();
if (background_terms.size() > 0) {
PRINTB("Compiling background (%d CSG Trees)...", background_terms.size());
if (procevents) QApplication::processEvents();

background_products.reset(new CSGProducts());
this->background_products.reset(new CSGProducts());
for (unsigned int i = 0; i < background_terms.size(); i++) {
shared_ptr<CSGNode> nterm = normalizer.normalize(background_terms[i]);
background_products->import(nterm);
this->background_products->import(nterm);
}
}
else {
this->background_products.reset();
}

if (this->root_products &&
(this->root_products->size() >
Expand Down

0 comments on commit 1799fe5

Please sign in to comment.