opnsense-ports/math/carve/files/patch-common_read_ply.cpp
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

11 lines
561 B
C++

--- common/read_ply.cpp.orig 2013-02-22 09:51:55.000000000 +0100
+++ common/read_ply.cpp 2013-02-22 09:52:16.000000000 +0100
@@ -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);