#1803 bugfix: Intersections with a left-side operation failed to render properly. Regression introduced in 44a0632751

This commit is contained in:
Marius Kintel 2016-10-08 12:39:50 +02:00
parent de7550fdfd
commit 29bc3fe634

View file

@ -181,6 +181,9 @@ void CSGProducts::import(shared_ptr<CSGNode> csgnode, OpenSCADOperator type, CSG
else if (type == OPENSCAD_DIFFERENCE) {
this->currentlist = &this->currentproduct->subtractions;
}
else if (type == OPENSCAD_INTERSECTION) {
this->currentlist = &this->currentproduct->intersections;
}
this->currentlist->push_back(CSGChainObject(leaf, newflags));
} else if (shared_ptr<CSGOperation> op = dynamic_pointer_cast<CSGOperation>(csgnode)) {
assert(op->left() && op->right());