diff options
author | Marius Kintel <marius@kintel.net> | 2013-02-02 18:02:23 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-02-02 18:02:23 (GMT) |
commit | 625ba8eea0f05e29dcab65bd6b308cad7f769848 (patch) | |
tree | 15e3fe8e25c0f2279e62e4bd458cf5f8e0716f4c /src | |
parent | af0658a8fe441ebb0eb3d238e7055fd592343605 (diff) | |
parent | 96903036fdf6612d94f0211171da76f3a5450e3d (diff) |
Merge pull request #268 from boxofrox/openscad/issue267
openscad/issue267
Diffstat (limited to 'src')
-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); } |