diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-05 20:38:33 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-05 20:38:33 (GMT) |
commit | 966eb8f55e9460e5b200100940d98d88f5d47933 (patch) | |
tree | c4f4ff5d2aebe5b3db71b1d6c696c87936abfc58 /render.cc | |
parent | a02e00083f385a1770103569e07b2b5eb8d7ee4f (diff) |
Clifford Wolf:
Added missing "N.dim != 0" checks as needed e.g. for "if (false);" child nodes
(fixes bug reported by Andrew Plumb)
git-svn-id: http://svn.clifford.at/openscad/trunk@204 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'render.cc')
-rw-r--r-- | render.cc | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -92,7 +92,8 @@ CGAL_Nef_polyhedron RenderNode::render_cgal_nef_polyhedron() const continue; if (first) { N = v->render_cgal_nef_polyhedron(); - first = false; + if (N.dim != 0) + first = false; } else if (N.dim == 2) { N.p2 += v->render_cgal_nef_polyhedron().p2; } else if (N.dim == 3) { |