diff options
author | Marius Kintel <marius@kintel.net> | 2013-06-14 18:24:08 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-06-14 18:24:08 (GMT) |
commit | 054b4110d73c8ac713332b44f9b7db62a1c2d13d (patch) | |
tree | bce701114c7213dca9ac77bc3f9b7f3020585505 /src/csgterm.cc | |
parent | cdd50ea1430120ca02e07ee90c484ef74a22e3d5 (diff) |
Added assert for issue #403
Diffstat (limited to 'src/csgterm.cc')
-rw-r--r-- | src/csgterm.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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<CSGTerm> 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); } |