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; }