summarylogtreecommitdiffstats
path: root/read_ply.patch
blob: b95db16f881c7024027a5350d8a401cf07d5543b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Nur carve-1.4.0.orig/common/read_ply.cpp carve-1.4.0/common/read_ply.cpp
--- carve-1.4.0.orig/common/read_ply.cpp	2011-08-27 06:17:26.000000000 +1000
+++ carve-1.4.0/common/read_ply.cpp	2016-07-13 10:52:18.018913426 +1000
@@ -255,7 +255,7 @@
 carve::poly::Polyhedron *readFile(std::istream &in, const carve::math::Matrix &transform) {
   carve::input::Input inputs;
   if (!readFile<filetype_t>(in, inputs, transform)) {
-    return false;
+    return NULL;
   }
   for (std::list<carve::input::Data *>::const_iterator i = inputs.input.begin(); i != inputs.input.end(); ++i) {
     carve::poly::Polyhedron *poly = inputs.create<carve::poly::Polyhedron>(*i);