diff options
author | Marius Kintel <marius@kintel.net> | 2014-01-04 23:07:51 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2014-01-04 23:07:51 (GMT) |
commit | 9a1bd74af3bea6d2849ca303f5a7bb004e74d2b4 (patch) | |
tree | 09aabbe6586cf06987320b7436d343e6a7937785 /src/CGALEvaluator.cc | |
parent | 3b78ba1a581683b0198ceac566e5e606ad09ba88 (diff) | |
parent | 70026aa0b8dd2e918c17a5783ea1c02dd1d1e01b (diff) |
Merge branch 'master' of github.com:openscad/openscad
Diffstat (limited to 'src/CGALEvaluator.cc')
-rw-r--r-- | src/CGALEvaluator.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CGALEvaluator.cc b/src/CGALEvaluator.cc index 20c5d5e..37d4fd8 100644 --- a/src/CGALEvaluator.cc +++ b/src/CGALEvaluator.cc @@ -708,7 +708,7 @@ CGAL_Nef_polyhedron CGALEvaluator::evaluateCGALMesh(const PolySet &ps) PRINTB("Alternate construction failed. CGAL error in CGAL_Nef_polyhedron3(): %s", e.what()); } CGAL::set_error_behaviour(old_behaviour); - return CGAL_Nef_polyhedron(N); + if (N) return CGAL_Nef_polyhedron(N); } - return CGAL_Nef_polyhedron(); + return CGAL_Nef_polyhedron(ps.is2d?2:3); } |