Fix bug on comments
This commit is contained in:
parent
258470f203
commit
0aaac28d81
|
@ -223,7 +223,8 @@ impl LineParser for ObjParser {
|
|||
"vn" => self.parse_normal(line_number, line, path),
|
||||
"usemtl" => Ok(Element::UseMaterial(split.nth(0).unwrap().to_owned())),
|
||||
"f" => self.parse_face(line_number, line, path),
|
||||
"#" | "g" | "s" | "o" => Ok(Element::None),
|
||||
"g" | "s" | "o" => Ok(Element::None),
|
||||
first if first.starts_with('#') => Ok(Element::None),
|
||||
key if key.len() != 0 => Err(ParserError::UnexpectedKeyword(path.to_owned(), line_number, key.to_owned())),
|
||||
_ => Ok(Element::None),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue