From 622a67ccc9cdd46a82390c00c19136efbc23e94b Mon Sep 17 00:00:00 2001 From: granzuglia Date: Sat, 9 Aug 2014 09:46:19 +0000 Subject: [PATCH] import_ply.h: - err == ply::E_NOERROR is not a critical error --- wrap/io_trimesh/import_ply.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wrap/io_trimesh/import_ply.h b/wrap/io_trimesh/import_ply.h index 60bb0eb6..2e4fb6d5 100644 --- a/wrap/io_trimesh/import_ply.h +++ b/wrap/io_trimesh/import_ply.h @@ -320,9 +320,9 @@ static const char *ErrorMsg(int error) // to check if a given error is critical or not. static bool ErrorCritical(int err) -{ - if(err == PlyInfo::E_NO_FACE) return false; - return true; +{ + if ((err == ply::E_NOERROR) || (err == PlyInfo::E_NO_FACE)) return false; + return true; }