diff options
| -rw-r--r-- | src/csgtermnormalizer.cc | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/csgtermnormalizer.cc b/src/csgtermnormalizer.cc index e2474e9..81fab80 100644 --- a/src/csgtermnormalizer.cc +++ b/src/csgtermnormalizer.cc @@ -20,7 +20,7 @@ shared_ptr<CSGTerm> CSGTermNormalizer::normalize(const shared_ptr<CSGTerm> &root  			PRINTB("WARNING: Normalized tree is growing past %d elements. Aborting normalization.\n", this->limit);        // Clean up any partially evaluated terms  			shared_ptr<CSGTerm> newroot = root, tmproot; -			while (newroot != tmproot) { +			while (newroot && newroot != tmproot) {  				tmproot = newroot;  				newroot = collapse_null_terms(tmproot);  			} | 
