From 054b4110d73c8ac713332b44f9b7db62a1c2d13d Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Fri, 14 Jun 2013 14:24:08 -0400 Subject: Added assert for issue #403 diff --git a/src/csgterm.cc b/src/csgterm.cc index 7852715..a0379e7 100644 --- a/src/csgterm.cc +++ b/src/csgterm.cc @@ -188,6 +188,7 @@ void CSGChain::import(shared_ptr term, CSGTerm::type_e type, CSGTerm::F if (term->type == CSGTerm::TYPE_PRIMITIVE) { this->objects.push_back(CSGChainObject(term->polyset, term->m, term->color, type, term->label, newflag)); } else { + assert(term->left && term->right); import(term->left, type, newflag); import(term->right, term->type, newflag); } -- cgit v0.10.1