#3830: read only the three .3dl Mesh header tokens it uses

This commit is contained in:
arnav-hiwarkar committed 2026-11-17 22:28:16 +05:30
1 parent 6232bed556
commit 104875a897
1 file changed
+1 -1
+1 -1
View File
@@ -62,7 +62,7 @@ pub fn parse_3dl(text: &str) -> Option<Lut> {
}
if l.starts_with(|c: char| c.is_ascii_alphabetic()) {
// "Mesh <in bits> <out bits>" (Lustre header); other keywords are ignored.
let t: Vec<&str> = l.split_whitespace().collect();
let t: Vec<&str> = l.split_whitespace().take(3).collect();
if t[0].eq_ignore_ascii_case("mesh") && t.len() >= 3 {
out_bits = t[2].parse().ok();
}