From 9f920c5087940ca7053550f0645ed20d6e8ab114 Mon Sep 17 00:00:00 2001 From: yizhaosan <2316453754@qq.com> Date: Mon, 10 Oct 2022 10:12:54 +0800 Subject: [PATCH] Sometimes colored STL display exception --- wrap/io_trimesh/import_stl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wrap/io_trimesh/import_stl.h b/wrap/io_trimesh/import_stl.h index df7f47917..a4d4ff6d7 100644 --- a/wrap/io_trimesh/import_stl.h +++ b/wrap/io_trimesh/import_stl.h @@ -115,6 +115,9 @@ static bool IsSTLColored(const char * filename, bool &coloredFlag, bool &magicsM FILE *fp = fopen(filename, "rb"); char buf[STL_LABEL_SIZE+1]; fread(buf,sizeof(char),STL_LABEL_SIZE,fp); + for(int i=0;i