summarylogtreecommitdiffstats
path: root/read_ply.patch
diff options
context:
space:
mode:
Diffstat (limited to 'read_ply.patch')
-rw-r--r--read_ply.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/read_ply.patch b/read_ply.patch
new file mode 100644
index 000000000000..b95db16f881c
--- /dev/null
+++ b/read_ply.patch
@@ -0,0 +1,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);