From 27cad0eb4674b6df354796ca867f9bf756508c85 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Thu, 11 Jan 2024 12:12:07 -0700 Subject: [PATCH] fix --- src/ply.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ply.c b/src/ply.c index 82dc8b0..1a859ba 100644 --- a/src/ply.c +++ b/src/ply.c @@ -129,8 +129,8 @@ PlyElement* ply_load_mesh(char* filename) { } } - if(format_id == PLY_FORMAT_INVALID) { - fprintf(stderr, "unknown format %s\n", line); + if(format_id != PLY_FORMAT_BE && format_id != PLY_FORMAT_LE) { + fprintf(stderr, "can only parse binary PLY files\n"); goto close; }